Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Triggering a layer from another composition

  • Triggering a layer from another composition

    Posted by António Ferreira on August 18, 2015 at 8:15 pm

    Hello everyone,
    I’m trying to trigger Jesus eyes… 🙂

    I’ve used the expression below in the “position” of both eyes layers and I’m controling them using a null object named “eyes_ctrl” in other composition.

    The fact is that I can control them, but when I add some keyframes in “postition” of the null object, the effect just vanishes, and I lose control of the eyes. Do I need to change or renew the expression?

    comp("jesus").layer("eyes_ctrl").transform.position;

    António Ferreira replied 10 years, 8 months ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    August 18, 2015 at 11:27 pm

    Is the layer with the expression in a precomp nested in your “jesus” and the precomp layer doesn’t start at the beginning of the outer comp? If so, this may fix it:

    C = comp(“jesus”);
    L = C.layer(thisComp.name);
    C.layer(“eyes_ctrl”).transform.position.valueAtTime(time+L.startTime)

    Dan

  • António Ferreira

    August 19, 2015 at 1:16 am

    Thank you!
    I guess that’s not the case!

    Well, i’ve got:
    Jesus > Olhos_Jesus > Olhos_Jesus_2

    The null object is inside “Jesus” comp, and the eyes are inside “Olhos_Jesus_2” comp

    “Olhos_Jesus_2” is inside “Olhos_Jesus” witch is inside “Jesus”.

    All of them start in the very first frame.

    🙂 any help is very welcome 🙂

  • Spencer Tweed

    August 23, 2015 at 8:07 pm

    Your original expression looks fine to me. Maybe try looking for something else…? There’s a lot that can go wrong when linking between comps – and a lot that can go wrong when referencing a position. Is anything parented? Any 3D layers? Try isolating what’s going wrong.

    – Spencer

  • António Ferreira

    August 27, 2015 at 7:36 pm

    Hello, now here’s what I’m trying to do (CC 2014 version)
    When I add keyframes to null’s “position” I lose control of the eyes :/

    https://www.sendspace.com/file/ucqmhr

  • António Ferreira

    August 28, 2015 at 9:15 pm

    Hello people.
    I’ve figured out what’s wrong.
    It seems that tracking with a null, the “position” of an object inside a certain comp, doesn’t work if that comp has “time remapping” activated, which was the case.

    I just deactivated “time remapping” an it works.

    My blinking option stoped working, but I’ve found another solution for that matter.

    Anyway, the main problem is solved 🙂
    Thank you all.

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