Page 1 of 1
put a Solid in an other folder than default folder "Solids"
Posted: March 15th, 2012, 5:45 am
by lougris
Hello,
Is it possible to create a solid and put it in an other folder than default folder "Solids"?
Thanks
Frédéric
Re: put a Solid in an other folder than default folder "Soli
Posted: March 15th, 2012, 6:53 am
by byronnash
You can just move it after you create it. Here's a snippet from the docs.
Code: Select all
//create a new FolderItem in project, with name “compsâ€
var compFolder = app.project. items.addFolder(“compsâ€);
// move all compositions into new folder by set t ing
// compItem’s parentFolder to “comps†folder
for(var i = 1; i <= app.project.numItems; i++) {
i f(app.project.item(i) instanceof CompItem)
app.project.item(i).parentFolder = compFolder;
}