ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Triggering a layer from another composition

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
António Ferreira
Triggering a layer from another composition
on Aug 18, 2015 at 8:15:34 pm
Last Edited By António Ferreira on Aug 18, 2015 at 11:11:47 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;


Return to posts index

Dan Ebberts
Re: Triggering a layer from another composition
on Aug 18, 2015 at 11:27:14 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



Return to posts index

António Ferreira
Re: Triggering a layer from another composition
on Aug 19, 2015 at 1:16:25 am
Last Edited By António Ferreira on Aug 19, 2015 at 1:18:15 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 :)


Return to posts index


Spencer Tweed
Re: Triggering a layer from another composition
on Aug 23, 2015 at 8:07:50 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


Return to posts index

António Ferreira
Re: Triggering a layer from another composition
on Aug 27, 2015 at 7:36:59 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


Return to posts index


António Ferreira
Re: Triggering a layer from another composition
on Aug 28, 2015 at 9:15:58 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.


Return to posts index

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