3 ms·
@IvanK_net ... Photoshop is so developer unfriendly ... but now by exposing generators, it seems to be improving a bit (like shown here https://www.youtube.com/
by santa_boy 11y ago
@IvanK_net ... Photoshop is so developer unfriendly ... but now by exposing generators, it seems to be improving a bit (like shown here https://www.youtube.com/watch?v=wHqgUvw5mno https://www.youtube.com/watch?v=wHqgUvw5mno)
I need to a super simple task of replacing the image in a Smart Object without having to go through the entire UI thing. Any idea if such a thing is possible?
- IvanK_net 11y agoI don't know if it is possible in Photoshop, but Photopea has a very good support of Smart Objects since the last release. Such thing would take me like extra 15 lines of code. Do you need to edit your own PSDs, or you want it to be done automatically in your app?
- santa_boy 11y ago@IvaK_net: The use case is as follows. I have standard PSDs with smart objects for various screen sizes. I want to show various screens on the same template. Currently, I take the screenshot and replace the images one by one. Ideally, I would like to issue a command from my terminal to use the screenshots (which I generate from another tool) in a folder and pop them into the smartobject and export the output to an output folder.
- IvanK_net 11y agoI am still not sure if I understand what you need. If you have a Smart Object, which occurs multiple times in your PSD, you can double-click it, put all your screenshots inside it and save it. Then you can simply switch the visibility of layers inside a smart object. Using Photopea would require running it in a browser window, it would be hard to connect it with your terminal.