Skip to main content
FredFreire
Participant
May 15, 2020
Question

Does index expression work for shape layers contend?

  • May 15, 2020
  • 1 reply
  • 477 views

I'm work in a Shape layer with lots of contend and need link opacity of this contend groups to a make a delay effect with valueAtTime function. I'm Try this: 

OD = thisComp.layer("CTRL_WIGGLE").effect("Opacity Delay")("Slider") // to get the delay value at a slider control.

content("Group 2").transform.opacity = content(index+1).transform.opacity.valueAtTime(time - OD) // tryin to link on a group opacity using the fisth group opacity as main animation.

This topic has been closed for replies.

1 reply

Mylenium
Legend
May 16, 2020

The content hierarchy needs to be adressed directly by stringing together .content() references and the relative propertyIndex(), not the layer index. If you're only operating on the first group level this should be easy enough, but the deeper the nested groups are, the more complicated it gets.

 

Mylenium