In this use case, we'll try to create something just like this:
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.
Step 2. Create "Start AFK" chain
Go to Chains section and click on the Plus Button.
Firstly, we need to mute our microphone. To do this, we need to select Mute Source command and select Mic/Aux.
Then, we set our AFK message "Going for a cup of tea" (Select Set Text command and our AFK text source).
Also create timer using Start Timer command and AFK timer output source.
It's static at the moment, but we'll do some magic in the next step.
Then, we can switch our current scene to AFK Screen scene using Switch Active Scene command.
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.
Make the same with the right side:
In the end your command editor should look like this:
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".
Also we need to create a variable with String type and default value 10.
Okay, now we need to replace text and time in our commands with these variables.
Edit Set Text command and write our variable
Edit Set Timer command and write our variable
Then our command editor looks like this:
Now you can run your chain with different text and time which can be changed before starting.
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.
We also need to stop our timer. Select Stop Timer command and write Timer Name you passed in Start Timer command.
Finally, select Switch Active Scene command and get back our main scene.
So, our final chain should look like this
Now you can use these chains to easily turn on our beautiful AFK Screen.