Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Move Rig to parent comp

  • Move Rig to parent comp

    Posted by Steve Sierra on April 17, 2017 at 10:24 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 !

    Steve Sierra replied 9 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 17, 2017 at 7:22 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

  • Steve Sierra

    April 18, 2017 at 4: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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy