ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How can i do this?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nathaniel Logan
How can i do this?
on Feb 6, 2019 at 3:54:00 am

Hi,

Im creating a character rig, where i need to parent the Main comp layerposition toPrecomp Null layerposition, also i need to controll the mainComp layer value, since im using script which can parent the layer position and adding current layer value, attaching below.

But the problem is when i try to link the mainComp layer to the preComp layer, the Layer jumps to the position of preComp layer, so in my case the rigs scatters, can you help me on this.

What i want to achieve is link the position of preComp Null layer to mainComp layer + transform mainComp layer value.

Thanks,
Much Appreciated.

value+comp("preComp").layer("Null").position;


Return to posts index

Nathaniel Logan
Re: How can i do this?
on Feb 6, 2019 at 7:36:22 am

Ah,

finally, I found a script from Dan Ebberts, one of his old post, what exactly I've wanted.

Thanks Dan.

p = thisComp.layer("parent").transform.position;
delta = valueAtTime(0) - p.valueAtTime(0);
p + delta


Return to posts index

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