Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script for “Continuously Raster on for all Layers”

  • Script for “Continuously Raster on for all Layers”

    Posted by Dan Fassnacht on January 19, 2017 at 6:33 pm

    Hey all,

    I’m looking for a script to turn on Continuous Raster for all layers within a composition. That would include any pre-comps on down not just for the comp that I had opened.

    Any help would be awesome!

    Thanks,

    Dan

    Dan Fassnacht replied 9 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 19, 2017 at 6:55 pm

    Try this:


    function processComp(theComp){
    for (var i = 1; i <= theComp.numLayers; i++){
    if (theComp.layer(i).canSetCollapseTransformation){
    theComp.layer(i).collapseTransformation = true;
    }
    if (theComp.layer(i).source instanceof CompItem){
    processComp(theComp.layer(i).source);
    }
    }
    }

    if ((app.project.activeItem != null) && (app.project.activeItem instanceof CompItem)){
    processComp(app.project.activeItem);
    }else{
    alert("Please select a comp");
    }

    Dan

  • Dan Fassnacht

    January 19, 2017 at 7:02 pm

    Worked liked a charm!

    Thanks Dan

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