ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Relative position and delay effect

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Roberto Borges-Illana
Relative position and delay effect
on Jan 18, 2020 at 8:22:31 am
Last Edited By Roberto Borges-Illana on Jan 18, 2020 at 7:35:08 pm

Hi there.
I'm struggling to make an object (with centered anchor point) parented to a Null Object move according to the relative position of this Null at the same time a delay effect is in use. I'm trying to parent object's "Transform > Position" to Null's "Transform > Position". This way I can animate my Null with keyframes or just expressions. Doing this, my intention is to have one Null Object controlling the opacity and position of multiple layers no matter the time these layers start appearing on my timeline.
What I have now:
// This works perfect but I cannot use it together with the delay effect. It keeps the original Object's position in place (wich is perfect).
---
target = thisComp.layer("Null 1").transform.position;
(target.value - target.valueAtTime(0)) + value;
---
// This works perfectly with Opacity, but for position, it inherits the exact Null's position. If I have multiple layers linked this way, they would be one on top of each other and at the wrong in and out positions.
---
target = thisComp.layer("Null 1").transform.position;
delay = inPoint;
delta = target.valueAtTime(time - delay);
value = delta
---
Any idea?

// ONE
target = thisComp.layer("Null 1").transform.position;
(target.value - target.valueAtTime(0)) + value

// TWO
target = thisComp.layer("Null 1").transform.position;
delay = inPoint;
delta = target.valueAtTime(time - delay);
value = delta


Return to posts index

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