put a Solid in an other folder than default folder "Solids"

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
lougris
Posts: 12
Joined: March 12th, 2012, 5:29 am

Hello,

Is it possible to create a solid and put it in an other folder than default folder "Solids"?

Thanks

Frédéric
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

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;
}
Post Reply