How to use checkbox to decide layers order
I am trying to create a reusable composition with three layers in it. I would like to have a checkbox in Essential Graphics to decide if the layers are ordered 1, 2, 3 or 3, 2, 1. I have found the following script
to order layers but to which property can I connect this code?
Because it's not position, opacity nor rotation. Or is there some way to run code automatically when a composition is created or initialized?
All help appreciated, thank you.
