Is there a script to globally control the quality switch of all layers in all (selected) comps?
I'm dying with a 4K project and would like to turn everything to Draft quality while I'm assembling layers together (without having to open every comp and flick all the switches)
Global quality switch to Draft?
Moderator: byronnash
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
I think this will work:
Dan
Code: Select all
var myComps = app.project.selection;
var myComp;
for (var i = 0; i < myComps.length; i++){
myComp = myComps[i];
if (! (myComp instanceof CompItem)) continue;
for (var j = 1; j <= myComp.numLayers; j++){
try{
myComp.layer(j).quality = LayerQuality.DRAFT;
}catch(err){
}
}
}
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
That's a little trickier, but I think this works:
Dan
Code: Select all
var myComps = app.project.selection;
var myComp;
for (var i = 0; i < myComps.length; i++){
myComp = myComps[i];
if (myComp instanceof CompItem){
setLayers(myComp);
}
}
function setLayers(theComp){
for (var i = 1; i <= theComp.numLayers; i++){
try{
theComp.layer(i).quality = LayerQuality.DRAFT;
}catch(err){
continue;
}
if (theComp.layer(i).source instanceof CompItem){
setLayers(theComp.layer(i).source);
}
}
}
Dan