thisProperty expression
I understand I can use thisProperty to get the index of a property, but is there a way to get the index of the shape group my opacity is inside? Sort of like an thisProperty.parent.index or something
I understand I can use thisProperty to get the index of a property, but is there a way to get the index of the shape group my opacity is inside? Sort of like an thisProperty.parent.index or something
It's going to be something like:
thisProperty.propertyGroup(4)
.propertyGroup lets you travel up the property hierarchy, with the number specified being the number of levels you're moving up. One thing that can help is to pickwhip to your property from a text layer's source text expression to create an expression like this:
p = thisComp.layer("Shape Layer 1").content("Group 1").content("Rectangle 1").transform.opacity;
p.propertyGroup(4).name
That way you can see what the different levels are (sometimes they're not all visible) to make sure you've got the right one.
Dan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.