Copy link to clipboard
Copied
Afternoon all,
Trying to do something simple, but after about an hour of Googling I can't seem to figure out how to get AfterEffects to do what I'm looking for. Short version, I want to parent the Taper properties of a shape's stroke to sliders on a control layer, and I'm trying to come up with a single expression to apply to them all.
The Taper properties I'm looking to parent are:
* Start Length
* End Length
* Start Width
* End Width
* Start Ease
* End Ease
And what I'm looking for the expression to do is pull the name of the property (i.e. "Start Length") and go up to the Shape Dynamics layer and look for a slider with that name, and pull the numeric value as appropriate.
The best place I know to start is with "thisProperty.propertyGroup(1).name," but that's pulling "Taper" instead of "Start Length." I'm guessing there's a suffix of some kind that I need to add, but I haven't been able to figure out what it is. Anybody know?
I think it's as simple as this:
thisComp.layer("Shape Dynamics").effect(thisProperty.name)("Slider")
Copy link to clipboard
Copied
I think it's as simple as this:
thisComp.layer("Shape Dynamics").effect(thisProperty.name)("Slider")
Copy link to clipboard
Copied
As usual I was missing the perfectly obvious and I never thought to try just thisProperty. Thanks as always Dan!