Controlling Shape Layer Elements via Expressions
#1
Posted 28 April 2011 - 06:43 AM
So, in case that wasn't clear enough, I want an expression in 'Shape Layer 1 > Contents > Circle 2 > Transform: Circle 2 > Scale' that dynamically references the scale of the Circle right above it in the stack (index-1).
I feel like I almost found the answer in the AE scripting guide by using a bunch of .property's but I couldn't make it work.
Any answers?
#2
Posted 28 April 2011 - 03:04 PM
#3
Posted 28 April 2011 - 03:49 PM
Mylenium
----------------------------------------------
www.mylenium.de - Your After Effects resource
#4
Posted 28 April 2011 - 05:39 PM
it may be simpler (and safer) to indeed just use separate layers where possible....
Okay, thanks. I guess I'll just break them out to layers
#5
Posted 30 April 2011 - 09:42 AM
Shape layer content groups are property groups and can be adressed using the same syntax either using the reserved content().xyz stuff or the more generic propertyGroup() and propertyIndex() methods, meaning you can simply fill in 1 to 3 to go up in the hierarchy relative to the property to which the expression is applied and then use chained propertyIndex() stuff to walk down again from the root to where your referenced property is.
Toward the bottom of this page, there are some instructions and an example for paint strokes, but the idea is the same.
Todd Kopriva, Adobe Systems Incorporated
After Effects quality engineering
After Effects team blog
---------------------------------------------------------------------------------------
#8
Posted 21 October 2011 - 06:46 PM
access a shape's index from any of its own properties:
thisProperty.propertyGroup(1).propertyIndex
#9
Posted 21 October 2011 - 06:55 PM
access a shape layer's parent's index (and so on and so forth):
thisProperty.propertyGroup(2).propertyIndex
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










