-
Adding label to specific item EXTENDSCRIPT
Hi!
I`m working in a project at the office and we want to write a script that creates folders. I’ve already did that with this simple code:
app.project.items.addFolder("RENDER");
app.project.items.addFolder("FOOTAGE");
app.project.items.addFolder("MATERIALES");
app.project.items.addFolder("PRECOMPS");Then we want to add labels to an specific folder, in this case is the “RENDER” folder. It suppose to change to red and the other stay in yellow.
I’ve try this:
app.project.items.addFolder("RENDER");
app.project.items.addFolder("FOOTAGE");
app.project.items.addFolder("MATERIALES");
app.project.items.addFolder("PRECOMPS");
app.project.item(4).label= (1)But I dont want to guess the index of the item, I just want the RENDER folder to turns red. There’s a way to add labels to an item named RENDER?
THANKS!