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

Running a script to simulate a mouse click on a point

Community Beginner ,
May 08, 2014 May 08, 2014

Dear all,

I'm facing some issues while trying to use a plug-in by Red Giant (Trapcode Sound Keys), through a script executed on a server.

That plug-in has an 'Apply' button which generates keyframes based on the song file imported. However I can't seem to be able to trigger that button via any handle nor anything, Red Giant support told me that there wasn't any information on the matter as their plug-in wasn't really intended for this usage.

So the question became more general, is there any way of running a script on AE to simulate a mouse click on the button?

Or anyone has got any idea on any other way? I'm really open to any suggestion, even going through the SDK.

Thank you all for your time,

Kind regards,

Juan

TOPICS
Scripting
2.6K
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

correct answers 1 Correct answer

Advocate , May 12, 2014 May 12, 2014

Mouse events can only be performed on ScriptUI elements within ExtendScript scripts, not AE plugins. Pg. 153 of the Javascript Tools Guide CC.pdf

The only way to trigger the Apply button on that plugin is to click it manually by way of a user interaction.

Translate
Advocate ,
May 12, 2014 May 12, 2014

Mouse events can only be performed on ScriptUI elements within ExtendScript scripts, not AE plugins. Pg. 153 of the Javascript Tools Guide CC.pdf

The only way to trigger the Apply button on that plugin is to click it manually by way of a user interaction.

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 Beginner ,
May 13, 2014 May 13, 2014

Hello David, thanks for replying. I'll take care of it using Convert Audio to Keyframe instead of using Trapcode Sound Keys.

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
Participant ,
May 13, 2014 May 13, 2014
LATEST

I realize you have already maked this as answered, but I thought I would add some info for future readers...

Regarding clicking buttons using the SDK.

I have been able to click "standard" buttons (PF_Param_BUTTON) on effects using the SDK. I don't have access to the specific plugin you mention, but it might be worth a shot if you aren't afraid to roll your own compiled plugin.  Here's the SDK discussion where we worked this out:

Any way to click a button on an effect?

Basically, you need to write an AEGP plugin and send the PF_Cmd_USER_CHANGED_PARAM message to the parameter on the effect you would like to click.

If the button is not a 'standard' PF_Param_BUTTON, ie: a custom drawn widget, this won't work.

-Andy

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