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

SDK, How to pass argument to my own plugin...

Engaged ,
Jan 10, 2022 Jan 10, 2022

Copy link to clipboard

Copied

Hey

 

I'm neck deep in sdk and already losing my marbles here... so maybe some1 can give me a hint.

 

Say I have this in JSX to run my plugin

var miTestPluginVar= stringIDToTypeID( "miTestPluginUniqueIDBlablabla" );
executeAction( miTestPluginVar, undefined, DialogModes.NO );

How could I pass to it a string? Can I ? 

I take I will be able to "fish it out of " > 

DLLExport SPAPI SPErr AutoPluginMain(const char *caller,
                                     const char *selector,
                                     void *message)

Message somehow, by casting it to something and then "black magic" happens. But to get to that point... 

 

Regards

Dariusz

 

 

TOPICS
Actions and scripting , SDK

Views

477

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
Jan 10, 2022 Jan 10, 2022

Copy link to clipboard

Copied

The second param to executeAction is an ActionDescriptor (JavaScript). Fill that up with your data with Put* calls and get it out of the message in AutoPluginMain with ActionDescriptor (C++) Get* calls. See Hidden and AutomationFilter for an example.

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
Engaged ,
Jan 12, 2022 Jan 12, 2022

Copy link to clipboard

Copied

@Tom Ruark Thank you for the ping! Looks interesting, I noticed some parts of it now, will dig more !

 

Also so to this post > https://community.adobe.com/t5/photoshop-ecosystem-bugs/including-piuaszstring-cause-entire-sdk-to-e... I cant post in that topic for some reason. In any case, I got it "fixed" by removing all the test projects from my cmake project (im on windows & cmake) Still trying to wrap my head around how to build it all in cmake/etc. 

 

Thank you for help! Will be back to this topic later on once I have some updates on the data flow.

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 12, 2022 Jan 12, 2022

Copy link to clipboard

Copied

See if you may at least mark for formality my newest reply in that thread as correct.

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
Engaged ,
Jan 14, 2022 Jan 14, 2022

Copy link to clipboard

Copied

@Kukurykus Thanks! That worked, still cant post in it tho :- )

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 15, 2022 Jan 15, 2022

Copy link to clipboard

Copied

LATEST

I reported your bug internally.

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