Copy link to clipboard
Copied
Hello,
I am new to Photoshop scripting, and I’ve come across a lot of terms like ActionDescriptor, stringIDToTypeID, putEnumerated, and similar concepts, but I don’t fully understand them.
Can anyone help me understand these or point me to examples or tutorials?
Also, are these only related to smart objects, or do they apply to other areas as well?
Copy link to clipboard
Copied
Those terms are related to Action Manager code, as opposed to Object Document Model code.
That’s the kind of code one can generate by recording operations in Photoshop with ScriptingListener.plugin
Copy link to clipboard
Copied
I have a layer (a logo on a mug) that I converted to a smart object. I want to resize it and apply a wrap effect. How can I do this?
Copy link to clipboard
Copied
Why would you need a Script for that?
What are you actually trying to do/automate?
Could you please post screenshots with the pertinent Panels (Toolbar, Layers, Options Bar, …) visible?
Copy link to clipboard
Copied
I’m working on an image of a mug and trying to apply a logo or other designs onto it.So I want to wrap /transform the logo
Copy link to clipboard
Copied
So warp the Smart Object, you need no Scripts for that.
Could you please post screenshots with the pertinent Panels (Toolbar, Layers, Options Bar, …) visible?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
yes that's what I want but I want to do it via script
Copy link to clipboard
Copied
Again: Why?
What would be the benefit?
Are you talking about large volumes of images/layouts?
Copy link to clipboard
Copied
cause I want to put the script inside my project
Copy link to clipboard
Copied
As I am gonna have multiple mugs with different logo or designs
SO I want it via script
Copy link to clipboard
Copied
As I am gonna have multiple mugs with different logo or designs
SO I want it via script
By @ritaA
So finally …
In this case your approach seems backwards.
Instead you should (in my opinion) set up the images of the mugs with warped Smart Objects (plus the other Adjustments etc.) and use a Script to replace the Smart Object with the new designs in turn and save anew, not place and warp the new design again and again.
But the replacement images should obviously all have the same dimensions and resolutions, otherwise one could place and scale them in the Smart Object.
Copy link to clipboard
Copied
You mean do all the job (warp, rezise....) on the image then place it on the mug?
Copy link to clipboard
Copied
My problem wasn't about the order of doing the job , I had problem how to do the warp/transform via the script
Copy link to clipboard
Copied
My problem wasn't about the order of doing the job , I had problem how to do the warp/transform via the script
By @ritaA
That would be imprudent.
Set up the template files properly and then use a Script to populate them with the alternative designs and save the new files.
By @ritaAYou mean do all the job (warp, rezise....) on the image then place it on the mug?
No. See above.
Copy link to clipboard
Copied
Keep in mind that
• either all the graphics should have the same dimensions and resolution
• or the Smart Object in the template should be large enough to accomodate all the alternative designs – if you go with that route.
Copy link to clipboard
Copied
Thank you
Copy link to clipboard
Copied
Template processing has come up repeatedly, so you should be able to find Scripts that can help you once you set up the template file/s with the Smart Object/s.
Copy link to clipboard
Copied
If this is about populating a template/Smart Object with other designs and saving copies for the various replacements that can indeed be automated with a Script.
Copy link to clipboard
Copied
See »Action Manager« here for example:
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more