Skip to main content
JesB-SsPV8V
Inspiring
November 9, 2013
Answered

Run plug-in through script?

  • November 9, 2013
  • 1 reply
  • 2958 views

Does anyone know if it's possible to run a plug-in through a script? For example, if I click a UI button, the script will run a plug-in?

JesB

This topic has been closed for replies.
Correct answer David Torno

Please elaborate then. Are you referring to a menu command in the drop down menus? If so you can also use:

app.executeCommand(app.findMenuCommandId("NAME OF MENU COMMAND"));

This will execute a menu command, but keep in mind that it's not always stable. Just place the case sensitive menu item name in the double quotes.

1 reply

Legend
November 9, 2013

You can apply plugin effects directly to a layer:

app.project.item(COMP_ITEM_INDEX).layer(LAYER_INDEX).property("Effects").addProperty("Fast Blur")

Ideally you would use the matchName for the plugin just to eliminate any confusion if you have any plugin names that are identical, and yes there are some that exist.

JesB-SsPV8V
Inspiring
November 10, 2013

Thanks for your reply!

The problem now is that the plugin I want to run is not an effect plugin. The plugin doesn't show not up in the effects and preset window.

JesB

David TornoCorrect answer
Legend
November 10, 2013

Please elaborate then. Are you referring to a menu command in the drop down menus? If so you can also use:

app.executeCommand(app.findMenuCommandId("NAME OF MENU COMMAND"));

This will execute a menu command, but keep in mind that it's not always stable. Just place the case sensitive menu item name in the double quotes.