Copy link to clipboard
Copied
I want to access the rotation property of a rectangle below, the easiest way is to use the pick whip, but it will always access the same “Rectangle 1”. I want to duplicate the group several times and always take the rotation of a rectangle below, not the "rectangle 1"
I normally access the properties of a layer below using "thisComp.layer(thisLayer, 1).transform.rotation" but I'm not sure if it works the same
Try this:
idx = thisProperty.propertyGroup(2).propertyIndex;
thisProperty.propertyGroup(3)(idx+1)("Transform")("Rotation")
Copy link to clipboard
Copied
Try this:
idx = thisProperty.propertyGroup(2).propertyIndex;
thisProperty.propertyGroup(3)(idx+1)("Transform")("Rotation")
Copy link to clipboard
Copied
worked perfectly, thanks!