Highlighted

Does index expression work for shape layers contend?

New Here ,
May 15, 2020

Copy link to clipboard

Copied

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.

TOPICS
Expressions, How to, Scripting

Views

365

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Does index expression work for shape layers contend?

New Here ,
May 15, 2020

Copy link to clipboard

Copied

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.

TOPICS
Expressions, How to, Scripting

Views

366

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 15, 2020 0
Mylenium LATEST
Most Valuable Participant ,
May 15, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 15, 2020 0