Recursive Switches: Motion Blur & 3D
Posted: February 1st, 2012, 7:43 pm
Are there any scripts that will recursively turn on/off the 3D & Motion Blur switches for all comps, and the layers contained in precomps?
extending the Adobe ecosystem
https://aenhancers.com/
Code: Select all
// turn off solo on all layers
{
var myComp;
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
myComp = app.project.item(i);
for (var j = 1; j <= myComp.numLayers; j++){
myComp.layer(j).solo = false;
}
}
}
}
Code: Select all
// turn on 3D on all layers
// http://aenhancers.com/viewtopic.php?f=11&t=2036&p=7496
{
app.beginUndoGroup("Recursive Enable 3D");
var myComp;
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
myComp = app.project.item(i);
for (var j = 1; j <= myComp.numLayers; j++){
myComp.layer(j).threeDLayer = true;
}
}
}
app.endUndoGroup();
}