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

how can I get the pluginID in Effect type plugins?

Community Beginner ,
Mar 14, 2009 Mar 14, 2009

Copy link to clipboard

Copied

Hi,

I am craeting Effcet plugin and I want to get the PluginID because I want to execute the script file using AEGP_ExecuteScript() function?.

so Could you please tell me how can I get the pluginID in Effect plugins?

Thanks
Manjunath G
TOPICS
SDK

Views

3.0K

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 ,
Mar 14, 2009 Mar 14, 2009

Copy link to clipboard

Copied

You mean the match name? Check redefinery.com for that and make good use of the list provided there as well as the rd_GimmeProps script.

Mylenium

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 Beginner ,
Mar 15, 2009 Mar 15, 2009

Copy link to clipboard

Copied

Hi Mylenium,

Thanks for your reply.

see the below function prototype...

SPAPI A_Err (*AEGP_ExecuteScript)(AEGP_PluginID inPlugin_id, const A_char* inScriptZ,// in const A_Boolean latform_encodingB,// in AEGP_MemHandle* outResultPH0, AEGP_MemHandle* outErrorStringPH0);

I am developing a Effect plugin and I want to execute the script by using above function. So, How can I get the pluginID from the AfterEffects?

I have seen the sample SDK projects. In the AEGP (floder) SDK samples, the EntryPointFunc function prototype itself there is a pluginID.
See the EntryPointFunc() prototype...

EntryPointFunc( struct SPBasicSuite *pica_basicP, A_long major_versionL,
A_long minor_versionL,
const A_char *file_pathZ, const A_char *res_pathZ,
AEGP_PluginID aegp_plugin_id, void *global_refconPV);

I hope, you understood my problem?

Thanks
Manjunath

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 Beginner ,
Mar 16, 2009 Mar 16, 2009

Copy link to clipboard

Copied

I found the solution in Internet and implemented that. The solution is

// Get the pluginID
AEGP_GlobalRefcon globalRef=NULL;
const A_char* pluginName = "PNAME";
AEGP_PluginID pluginID;
utilitySuite5->AEGP_RegisterWithAEGP( globalRef, pluginName, &pluginID );

the AEGP_RegisterWithAEGP() function returns pluginID.
I have implemented this and got the pluginID, but I dont know is it correct way or not??

Thanks
Manjunath

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 ,
Mar 16, 2009 Mar 16, 2009

Copy link to clipboard

Copied

LATEST
*woohoo* Glad you could figure it out. Contrary to what you may have thought, I'm not programming in C++, i only thought you were looking for a specific plug-in's internal name. :-)

Cheers

Mylenium

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