Skip to main content
brandonb96942845
Inspiring
September 16, 2022
Answered

Parent Property: Stroke Taper by Name (thisProperty.propertyGroup(1).name Variant?)

  • September 16, 2022
  • 1 reply
  • 259 views

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?

This topic has been closed for replies.
Correct answer Dan Ebberts

I think it's as simple as this:

thisComp.layer("Shape Dynamics").effect(thisProperty.name)("Slider")

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
September 16, 2022

I think it's as simple as this:

thisComp.layer("Shape Dynamics").effect(thisProperty.name)("Slider")
brandonb96942845
Inspiring
September 16, 2022

As usual I was missing the perfectly obvious and I never thought to try just thisProperty. Thanks as always Dan!