Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Turn on “Continuously rasterize” via expressions or scripting

  • Turn on “Continuously rasterize” via expressions or scripting

    Posted by Juan Bosnic on January 3, 2012 at 3:23 am

    Hello everyone! Thanks for the great help you offer to us, self-educated AE-mateurs…

    Case: I am writing a script (.jsx file) and at some point I need to convert a layer to 3D, and also activate the little “sun” aka “Continuously rasterize” icon.

    I got the 3D part working by using this line of code
    layer.threeDLayer = true;

    However I couldn’t find the keyword to activate Cont. Rast. on it
    layer.contRast = ?????

    Any idea on how this could be done?

    Sumesh Surendran replied 6 years, 5 months ago 4 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    January 3, 2012 at 4:29 am

    Like this:

    layer.collapseTransformation = true;

    Dan

  • Juan Bosnic

    January 3, 2012 at 4:48 am

    I was betting on you to answer Dan.
    Of course that worked!

    Don’t you guys consider this type of short/basic threads a kinda waste of cyberspace?

    It would be great if there was a full scripting dictionary that merely lists keywords in alphabetical order and a few words describing what they do. Like the material you get if you search for “Javascript functions” or “full PHP keyword reference”.

    Does anybody know of anything like that?

  • Meng Zhang

    May 15, 2017 at 4:18 pm

    How to get same function for Comp? For example, if I just pre-composed a AVLayer and I want to get the newComp raterized automatically. Is there a way to do it?

    Thank you!

    var newComp = activeItem.layers.precompose([curLayer.index], curLayer.name, false);

    newComp.(?)

  • Dan Ebberts

    May 15, 2017 at 4:54 pm

    I haven’t tested it, but it should be close to this:

    var oldComp = app.project.activeItem;
    var newComp = oldComp.layers.precompose([curLayer.index], curLayer.name, false);
    oldComp.layer(newComp.name).collapseTransformation = true;

    Dan

  • Meng Zhang

    May 15, 2017 at 5:03 pm

    Dan,

    That’s very smart solution. Thank you for quick response!

    I will test it out and post the result here.

  • Meng Zhang

    May 15, 2017 at 6:11 pm

    Dan,

    Just let you know it works like a charm. Thank you for providing awesome solutions all the time.

    Cheers,
    Meng

  • Sumesh Surendran

    December 12, 2019 at 5:03 pm

    I found a script for “Continuously rasterize”

    https://gumroad.com/l/HMwmw

    but this script is not working for me, getting an error

    Unable to execute script at line 23. Bad argument – Expected: }

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