ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Move Rig to parent comp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve Sierra
Move Rig to parent comp
on Apr 17, 2017 at 10:24:54 am

Hi,

I am working on a face rig.
I have created an eye with it's rig in "Eye Comp" (simplified shape layers controlling a null with all the sliders controlling all the properties in artwork shape layers).
I want to move the rig to the face comp, and therefore have to change all the expressions to have the properties controlled by the new rig.

I first tried the autoFixExpressions in a script... but since I didn't create the expressions in a script, it doesn't work. (or I'm doing it wrong...).
I then wanted to "trick" the expression reader by using a text layer to define the rig's comp... no result (or I'm doing it wrong again).

Is there a way to do this or do I have to either change all the expressions manually or write a script that creates all the expressions to then be able to modify them at will ?

Thanks in advance for any help 😉

Cheers !


Return to posts index

Dan Ebberts
Re: Move Rig to parent comp
on Apr 17, 2017 at 7:22:35 pm

Your second method should work with something like this:

rigCompName = thisComp.layer("Eye Rig Comp Name").text.sourceText.value;
comp(rigCompName).layer("Eye Control").effect("Slider Control")("Slider")

I'm not sure if the expressions will survive the editing of the text layer though.

Dan



Return to posts index

Steve Sierra
Re: Move Rig to parent comp
on Apr 18, 2017 at 4:42:42 am

Thanks again Dan,

I think I had forgotten the ".value" at the end of the source text... I'll check it out as soon as I can.

Cheers


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]