Skip to main content
brandonb96942845
Inspiring
September 16, 2022
解決済み

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

  • September 16, 2022
  • 返信数 1.
  • 262 ビュー

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?

このトピックへの返信は締め切られました。
解決に役立った回答 Dan Ebberts

I think it's as simple as this:

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

返信数 1

Dan Ebberts
Community Expert
Dan EbbertsCommunity Expert解決!
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!