Expression Copied to Clipboard! πŸ—‚
← Back to Expressions

Control Shape Layer Position with Null - After Effects Expression

Control shape layer position with a Null - works like parenting, but keeps the relative position of your shape layer.

Control Shape Layer Position with Null

control=thisComp.layer("Control NULL"); // your controller null
controlPos = control.toComp(control.transform.anchorPoint);
fromComp(controlPos)
// apply to position property

‍

Copied to Clipboard!
control=thisComp.layer("Control NULL"); // your controller null
controlPos = control.toComp(control.transform.anchorPoint);
fromComp(controlPos)
// apply to position property

More expressions you might like...

Credit