Parent layer’s position across composition

Simple expression to parent to layer’s position that is inside other comp. it uses absilute positions of layer with help of .toWorld expression:

JavaScript
parrent layer=comp("MainComp").layer("layer");//parent layer that would drive out child
layernparrent layer.toWorld(parrent layer.transform.anchorPoint)*(-1)+value;

Leave a Reply

Your email address will not be published. Required fields are marked *