Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Extendscript to change a nullLayer from 2d to 3d

  • Extendscript to change a nullLayer from 2d to 3d

    Posted by Rob Coakley on September 9, 2014 at 4:32 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 .

    Rob Coakley replied 11 years, 9 months ago 51,098 Members · 1 Reply
  • 1 Reply
  • Rob Coakley

    September 9, 2014 at 7:34 pm

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy