Loop
Last updated
Last updated
loop is the most basic and important automation line type in Automation Toolkit Pro,
when trying to automate task, you want to create a fast mechanism that can preform multiple set of actions on multiple different object.
Inside Automation Toolkit Pro The loop is the main mechanism that will let you automate tasks on a number of objects, the loop type will decide what will be the set of object that the loop will go through, the default is the layers in the active composition.
the default loop will go through all layers in the active composition and run the same operations on all of them but that doesn't mean the result for every layer will be the same, with the help of other types of automation lines the loop can become smarter and differentiate layers based on their properties so it can preform differently on each layer.
You can add an automation line inside the loop so as you run the automation the loop will run it’s automation lines on all available items.
When adding an automation line inside the loop a new option with the name of the loop will appear on the automation line properties, this loop name will represent all of the items the loop will cycle through and show properties/actions of this specific loop type layer/project/item/property/number.
This basic automation use the default loop type "layer in the active composition", the generated name for this line is "loop1", "loop1" will represent each time a different layer in the composition starting with the first layer at index 1 to the last layer. then inside the "loop1" automation line using the "+" icon on this line we added an "if" line inside, this line asks a same question every time and if the answer is yes, the lines within the "if" line will be preformed too, so in this example the if line asks "is loop1 (which represents a layer) a solid?" if the answer is yes the automation continues to the "set" line that sets the "enable" property of "loop1" to false, so if the current layer is solid, disable this layer. this if will run on all the layers and will disable all the solids.
before running this automation-
after running this automation-