Copy link to clipboard
Copied
Hi,
I have been given a project file and I am just trying to understand what a particular expression is doing?
This is an expression assigned to a control box that turns on and off a group layer in element 3D:
thisComp.layer("Control_Layer_Name")(5)(10)(15)
Control_Layer_Name is the Adjustment layer with the control box.
Can anyone explain the 3 numbers in brackets as I have not seen this expression before?
cheers
Copy link to clipboard
Copied
They are the numeric indices of the enumerated lists and values - 5th effect, 10th effect parameter, property value 15. It's a perfectly valid shorthand syntax, it's just barely used because it gets confusing quickly if multiple effects need to be adressed and you have to keep the hierarchy straight.
Mylenium