Copy link to clipboard
Copied
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
1 Correct answer
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hello David, thanks for replying. I'll take care of it using Convert Audio to Keyframe instead of using Trapcode Sound Keys.
Copy link to clipboard
Copied
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

