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
- Select the Effects to include
- Ctrl select the property with expression ( if you have some )
- 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);

Very interesting.
Thx.