Copy link to clipboard
Copied
Hey Y'all,
I have imported multiple PSD files with many comps/layers. I need them all to be 3D layers, but I don't want to manually go into 30 comps and change the layers to 3D by hand. Is there a script or some quick way to do this? Thanks!
Try this:
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
for (var j = 1; j <= app.project.item(i).numLayers; j++){
if (app.project.item(i).layer(j) instanceof AVLayer){
app.project.item(i).layer(j).threeDLayer = true;
}
}
}
}
Copy link to clipboard
Copied
Try this:
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
for (var j = 1; j <= app.project.item(i).numLayers; j++){
if (app.project.item(i).layer(j) instanceof AVLayer){
app.project.item(i).layer(j).threeDLayer = true;
}
}
}
}
Copy link to clipboard
Copied
Thanks for your reply, Dan! I'll try it in a couple of hours when this project finishes rendering!
Copy link to clipboard
Copied
Holy crap! That worked like a charm! Thanks so much, Dan! :party_popper:
Copy link to clipboard
Copied
where should i add this script?
Copy link to clipboard
Copied
You would save it somewhere as a .jsx file, then:
File > Scripts > Run Script File > (navigate to the file)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now