ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Parent layer to child layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nathaniel Logan
Parent layer to child layer
on Feb 6, 2019 at 1:30:38 pm


In my recent post, I have found a way to control the child layer with a parent also moving the parent layer independently from its initial position, attaching the code.

Is it possible to connect two child layers to one parent layer and also animate the parent independently?

In my case im creating a face rig where i want to control the Left side of face position with a layer and Right side of face with another layer, and also the face can move in its independent direction from its initial position.

Can you pls help.
Much Appreciated

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

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved