If
if preforms a set of actions based on properties values
Last updated
if preforms a set of actions based on properties values
Last updated
Sometimes, we need to perform different actions based on different conditions.
The if automation line purpose is to add logics to your automations so you can make automations that take effect only on specific items.
First you choose the variable/loop name you want to ask about, it can be a loop and variable (after choosing the name of the variable the type of the variable will be shown as well),
then you need to select which property you want to check, you can change the conditional from equal(=) to not equal(!=), more than number(>), more than or equal number(≥), less than(<), less than or equal(≤).
next you can choose "custom" or other variable/loop name, "custom" will let you type a custom value and choosing other variable/loop name will let you choose one of their properties.
if you need to check whether layer property equal to known value for example "true" choose the "custom" first then type the value, if you need to check whether layer property equal to other unknown layer(can be any type of variable/loop) property you should choose the other loop/variable name then their property.
you want to select all the text layers in the composition.
for this you should loop through all the layers in the active comp, use an if automation line inside the loop, in the if you should select the loop name (loop1 represent the current layer) then it’s property “isText” ,next choose “=” + ”true”.
inside the if you will add a set automation line and choose to set the loop name "loop1" that represent the current layer, select the property “selected” and then select “=” + ”true”.