ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to delay timing on parented layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Pat Bray
Expression to delay timing on parented layer
on Apr 29, 2010 at 2:29:36 pm

Hi there

I wondered if anyone could help with an expression. Basically I have a couple of layers, one parented to the other and want to animate one but have the parented layer to animate say, a second or two behind the other, which will save me copying and pasting a ton of keyframes and have a tidier workflow!

Any ideas would be great,

P


Return to posts index

Michael Szalapski
Re: Expression to delay timing on parented layer
on Apr 29, 2010 at 7:05:32 pm

You will love this.

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index

Dan Ebberts
Re: Expression to delay timing on parented layer
on Apr 29, 2010 at 7:52:48 pm

If what you're trying to do is delay a parented layer's movement, you could do it with a position expression like this:

delay = .5;
parent.fromWorld(toWorld(anchorPoint,time-delay))


Dan



Return to posts index


Jamie Bradshaw
Re: Expression to delay timing on parented layer
on Nov 5, 2014 at 10:03:49 am

Thanks for this Dan. I was completely unaware of the fromWorld expression. This is a really powerful technique.

What would be the equivalent expression be for creating a parented delay effect for orientation?

Thanks,
Jamie

JimJam•Graphics
http://www.jimjamgraphics.com/


Return to posts index

Fernando Huezo
Re: Expression to delay timing on parented layer
on May 20, 2015 at 9:38:01 pm

Hi Dan
Why this expression is disabled when the scale is animate from 100 to 0 on the parent layer?


Return to posts index

Dan Ebberts
Re: Expression to delay timing on parented layer
on May 20, 2015 at 9:53:21 pm

I think those layer space transforms will die when scale is zero. I haven't tested this, but it might fix it:

delay = .5;
try{
parent.fromWorld(toWorld(anchorPoint,time-delay));
}catch(err){
value;
}

Dan



Return to posts index


Fernando Huezo
Re: Expression to delay timing on parented layer
on May 20, 2015 at 10:17:40 pm

the same thing keeps happening
this is my scene I dont know what is the problem



I have the HeadKid whit a wiggle in position, the B_Puppet Pin 4 follow the head wiggle with a nice delay, beautiful!!! I animate the scale of the HeadKid 114 to 0 my secod keyframe in scale and boom! thats happen



How fix this problem?


Return to posts index

Dan Ebberts
Re: Expression to delay timing on parented layer
on May 20, 2015 at 10:50:57 pm

The message you posted is actually from a different layer than the one where you have the expression exposed. Did you make that update everywhere you're using that expression?


Dan



Return to posts index

Fernando Huezo
Re: Expression to delay timing on parented layer
on May 20, 2015 at 11:02:58 pm

the problem come from HairKid layer instantly when I animate the HeadKid scale to zero. All the bones expressions are disabled



Exist other way to do the same or this problem no have solution?


Return to posts index


Dan Ebberts
Re: Expression to delay timing on parented layer
on May 20, 2015 at 11:35:55 pm

If you let the scale go to zero, any expression that has toWorld() needs to be wrapped in try/catch, like the example I gave you.


try{
bonePos = ....

}catch(err){
value;
}



The other thing you could try is not letting scale get all the way to zero. Maybe 0.01 instead.

Dan



Return to posts index

Fernando Huezo
Re: Expression to delay timing on parented layer
on May 20, 2015 at 11:55:20 pm

thank you very much for your patience!
works, no more mistakes!

many thanks Dan


Return to posts index

Fernando Huezo
Re: Expression to delay timing on parented layer
on May 27, 2015 at 5:33:01 pm

How we can apply this expression in rotation property on parented layer?


Return to posts index


Owain Street
Re: Expression to delay timing on parented layer
on Oct 4, 2018 at 12:27:19 pm

So helpful with the animation I am doing today... What a time saver! Thanks dan.


Return to posts index

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