ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Script for "Continuously Raster on for all Layers"

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dan Fassnacht
Script for "Continuously Raster on for all Layers"
on Jan 19, 2017 at 6:33:27 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


Return to posts index

Dan Ebberts
Re: Script for "Continuously Raster on for all Layers"
on Jan 19, 2017 at 6:55:10 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



Return to posts index

Dan Fassnacht
Re: Script for "Continuously Raster on for all Layers"
on Jan 19, 2017 at 7:02:17 pm

Worked liked a charm!

Thanks Dan


Return to posts index

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