Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

photoshop script --help

New Here ,
Jan 07, 2025 Jan 07, 2025

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?

TOPICS
Actions and scripting , Windows
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jan 07, 2025 Jan 07, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2025 Jan 07, 2025

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2025 Jan 07, 2025

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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

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 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025

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? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

image (1).png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025

Screenshot 2025-01-08 at 12.29.25.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

yes that's what I want but I want to do it via script

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025

Again: Why?

What would be the benefit? 

Are you talking about large volumes of images/layouts? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

cause I want to put the script inside my project

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

As I am gonna have multiple mugs with different logo or designs 
SO I want it via script 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025
quote

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

You mean do all the job (warp, rezise....) on the image then place it on the mug?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

My problem wasn't about the order of doing the job , I had problem how to do the warp/transform via the script 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025
quote

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. 

 

quote

You mean do all the job (warp, rezise....) on the image then place it on the mug?

By @ritaA

No. See above. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2025 Jan 08, 2025

Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2025 Jan 08, 2025
LATEST

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2025 Jan 07, 2025

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2025 Jan 07, 2025
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines