AFK Setup

In this use case, we'll try to create something just like this:

PlusButton

Step 1. Prepare your OBS scene

You need to create 2 background sources, 3 text sources, 1 gif and 1 background layer for "Going for a cup of tea" text.

PlusButton

Step 2. Create "Start AFK" chain

Go to Chains section and click on the Plus Button.

PlusButton

Firstly, we need to mute our microphone. To do this, we need to select Mute Source command and select Mic/Aux.

PlusButton

Then, we set our AFK message "Going for a cup of tea" (Select Set Text command and our AFK text source).

PlusButton

Also create timer using Start Timer command and AFK timer output source.

WARNING

It's static at the moment, but we'll do some magic in the next step.

PlusButton

Then, we can switch our current scene to AFK Screen scene using Switch Active Scene command.

PlusButton

Time for animation.

Move the left side of the screen using Move Source command. Select all the layers that linked with it, enter the coords (Learn more about coords here) and select the animation type.

PlusButton

Make the same with the right side:

PlusButton

In the end your command editor should look like this:

PlusButton

Step 2. Use dynamic timer and AFK message

FrameNinja has a really useful feature called Variables. You can add it to specify something before chain call. In this guide, we will use them to customize our AFK message and Time. Click on the Plus Button next to the "Variables" to create a new one. In our first variable we need to select the Multiline String type and enter default value "Going for a cup of tea".

PlusButton

Also we need to create a variable with String type and default value 10.

PlusButton

Okay, now we need to replace text and time in our commands with these variables.

PlusButton

Edit Set Text command and write our variable ${message}.

PlusButton

Edit Set Timer command and write our variable ${time}.

PlusButton

Then our command editor looks like this:

PlusButton

Now you can run your chain with different text and time which can be changed before starting.

PlusButton

Step 3. Stop AFK chain

The last thing to do is a chain that will smoothly return to our main scene. At first, we need to move back parts of our screen using Move Source command.

PlusButton

We also need to stop our timer. Select Stop Timer command and write Timer Name you passed in Start Timer command.

PlusButton

Finally, select Switch Active Scene command and get back our main scene.

PlusButton

So, our final chain should look like this

PlusButton

Now you can use these chains to easily turn on our beautiful AFK Screen.

PlusButton