Copy link to clipboard
Copied
I made a Master PSD with lots of linked Smart objects, now I want to copy the folder with those Smart Objects and the Master PSD to use them in a new project, but all the Smart Objects are linked to the first folder path; I know I can relink to the new path manually one by one but it takes some time...is there any option to relink to the new path all at once? or maybe using script?
thanks
Copy link to clipboard
Copied
If you copy the folder that should not be a problem. If you move the folder there will be a problem. If you first do a copy of the folder you may be able to write a script that would open all you master PSD files change linked smart objects that are linked to the original folder to the copied folder, resave the Master PSD files and close them. After the link have been changed you could delete the old folder. If you do a move when a master PSD file that is opened by Photoshop will have smart object links that are broken and you would need to resolve the broken links during Open or not resolve the broken links in the PSD. You may be able to ignore the broken links and have an open event script set up the would look at linked smart objects and relink the one linked to the old folder. A batch type script may be able to ignore broken link during open and then resolve the links using Action manager code perhaps DOM code open may through an error that you can catch.
Try Opening a PSD that has a broken link in a script and see what happens.
Copy link to clipboard
Copied
Thanks for reply, but how to write the script, do you have some example, sorry i dont understand with script
Copy link to clipboard
Copied
If you can not program a script you should do it manually or not move the folder. It will take you much more time to learn how to script Photoshop then fixing the links when the PSD files are opened.
How to write the script requires much knowledge of Photoshop, Programming and knowing a supported scripting language. Scripting Photoshop is not like recording actions. Most Photoshop users will never write a Photoshop Script. They will just use scripts other have made available or are shipped with Photoshop like Photomerge, Merge to HDR Pro, Load file into stack, Image Processor, Fit image and so on.
Copy link to clipboard
Copied
I would try link smart objects to cloud. You should have 2GB at least. With cloud smart objects you don't need care about paths to files.
Try this feature:
Copy link to clipboard
Copied
window>properties
click on convert to linked...
enter the path .. enjoy