Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression stopped working when keyframing slider control

  • Expression stopped working when keyframing slider control

    Posted by Ricky Lai on October 17, 2014 at 12:02 pm

    Hi,

    Basically, I’m creating a character rig here.

    The Main comp is called “Main”, which has a MasterControl to control all the sliders and points, like “EyeL”, “EyeR”, “Nose”, “Mouth”, etc.

    Then say, for the “Mouth” pre-comp layer in the Main comp, I pick-whipped the Time Remap Expression to a slider in the MasterControl, in order to change the facial expressions.

    thisComp.layer("MasterControl").effect("Mouth Expressions")("Slider")/30;

    Inside the Mouth pre-comp, I pick-whipped the position of a null object (that each of the mouths parented to) to the Main Comp’s MasterControl as well, to fine tune the position of the mouth.

    comp("Main").layer("MasterControl").effect("MouthPos")("Point")

    The following problem doesn’t appear unless the add keyframes to animate the mouth position. When keyframe is added, the point control for the mouth position doesn’t work anymore, nothing changes. If I change the slider value for the mouth expressions after i tweaked the mouth position, weird things happened.

    I’ve read that it might be related to the start time of the time remapped layer. But I don’t understand fully on this, thus I don’t know how to solve this. Can somebody further explain this please? Any help would be great.

    Thank you very much in advance!
    Ricky

    Logan King replied 11 years, 2 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 17, 2014 at 4:23 pm

    Try this for the expression inside the precomp:

    C = comp(“Main”);
    ctrl = C.layer(“MasterControl”).effect(“MouthPos”)(“Point”);
    L = C.layer(thisComp.name);
    ctrl.valueAtTime(time+L.startTime)

    Dan

  • Logan King

    May 14, 2015 at 1:01 am

    Similar problem here, kindly help. Cant seem to figure out how to implement that code in my case.

    Any help would be appreciated.

    https://forums.creativecow.net/thread/2/1062294

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