Close/Open folders?
Posted: March 8th, 2012, 5:50 am
The following code deselects all compositions in the project, but as an unwanted side effect it opens all folders. Is there a way to close the folders again?
I tried with:
And it returns true, but nothing happens. Can't find any documentation on this.
Thanks for your help.
Code: Select all
for(var i = 1; i<=app.project.numItems; i++){
if(app.project.item(i) instanceof CompItem){
app.project.item(i).selected = false;
}
}
Code: Select all
var folder = app.project.item(1);
folder.close = true;
Thanks for your help.