How to

l = thisComp.layer(“null_roof_LShape”);
l.toComp(l.anchorPoint);

Get a 2D comp pos from a 2d pos in a transformed 3d comp

L1 = comp(“the 3d comp”).layer(“the nested null”);

P = L1.toWorld(L1.anchorPoint);

L2 = thisComp.layer(“the 3d comp”);

L2.toComp(P);

( thanks to Dan Ebberts  at motionscript.com )

Get a 2D comp pos from a 3d pos

l = thisComp.layer(“a3DNull”);

l.toComp(l.anchorPoint);

Create an animation preset

  1. Select the Effects to include
  2. Ctrl select the property with expression ( if you have some )
  3. Animation > Save Animation Preset

Get the world position from a nested null

pRef=thisComp.layer(“Null”); pW=pRef.toWorld(anchorPoint);

Offset value in time

If you want to offset a value in time simply use the “valueAtTime” function. For instance if you want to use the position information of “Null 1″ but offset that value by 1 second you can use the following expression:

thisComp.layer(“Null 1″).transform.position.valueAtTime(time-1);

To make it half the speed you can use this expression:

thisComp.layer("Null 1").transform.position.valueAtTime(time*.5);

One Response to “How to

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>