ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Extendscript to change a nullLayer from 2d to 3d

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rob CoakleyExtendscript to change a nullLayer from 2d to 3d
by on Sep 9, 2014 at 4:32:45 pm

I appreciate this forum for its quick responce to Extendscript questions.

I would like to create a nullLayer that has 3 dimension not 2 using extendscript.
I cant seem to find that property.

var theItem=app.project.items.addComp("test",960,540,1,3,30.0);
var newNull= theItem.layers.addNull(theItem.duration)
newNull.name="null_21";

but when I add
newNull.position.setValueAtTime(0.0333333333333,[0.0, -3.592710735477347, -46.21629980602801]);

the z values are not respected.
I know I'm missing something and the addNull() method only has duration .


Return to posts index

Rob CoakleyRe: Extendscript to change a nullLayer from 2d to 3d
by on Sep 9, 2014 at 7:34:05 pm

I found It!
theItem.layers.addNull(theItem.duration).threeDLayer=true;


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]