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

Modifying Plugin Menu Name At Run-Time

New Here ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

Is there a way to modify the plugin menu name at run-time?

The plugin menu I am refereing to is under File->Automate in Photoshop.

 

Thanks for your help.

 

Abdo

TOPICS
SDK , Windows

Views

768

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

What exactly do you want to do? The plugins that show there have lines of code in them that places them in that menu. They can't be changed while PS is running. PS loads the info on startup.

Votes

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

Thanks for your prompt reply Chuck.

 

I know the PS loads the info on startup. My question is, is there a way to modify that menu on startup.

 

Any idea?

 

Thanks again.

Votes

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

There is no way to modify it at startup, as each entry on the list has the menu info writing into the code of the plugin, so you would have to alter all the files that you want to have listed, which, I don't think would be a smart thing to do. You can see how a file defines being listed there by looking at the script for ContactSheetII.jsx, which is in the preset/scripts folder of PS. It's the code that starts at:

// BEGIN__HARVEST_EXCEPTION_ZSTRING

Votes

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

Thanks again Chuck.

I am using the Photoshop SDK to develop the plugin. I thought there must be and API call that I would use to retrieve the plugin resource to modify that menu.

Votes

Translate

Translate

Report

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
LEGEND ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

No there is not.

Votes

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

Thanks Lumigraphics.

Ok. That might end my search for the problem then.

I thought I would use:

PICategoryProperty and PINameProperty defined in 'pigeneral.h'

Maybe not.

Thanks for your help.

Votes

Translate

Translate

Report

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 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

This is what I have in one of my regular scripts that puts it in the script menu - not the normal list, but above that. The category divides the entries, and are in alpha order.

/*

// BEGIN__HARVEST_EXCEPTION_ZSTRING

<javascriptresource>
<name>Process Images v7.1</name> 
<about>Written by Chuck Uebele 2010</about>
<category>aaaThisPutsMeAtTheTopOfTheMenu</category>
</javascriptresource>

// END__HARVEST_EXCEPTION_ZSTRING

*/

Votes

Translate

Translate

Report

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 23, 2020 Jan 23, 2020

Copy link to clipboard

Copied

I am able to locate the plugin name in the excutable resource and modified it directly and PS loads the plugin perfectly with the new modified name. However, the problem now is PS won't display the new name if it is a non-ascii characters - Chiness or arabic for example.
 
Any Idea?

Votes

Translate

Translate

Report

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 23, 2020 Jan 23, 2020

Copy link to clipboard

Copied

LATEST

Most likely, use localization, which I'm not all that sure how it works.

Votes

Translate

Translate

Report

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