Skip to main content
Participant
February 24, 2020
Answered

Automate Autotrace via Extendscript

  • February 24, 2020
  • 1 reply
  • 1525 views

Hi! Actually what I need is to automate layer auto tracing via scripting.

I'm able to call auto trace on a layer using the following command:

app.executeCommand(app.findMenuCommandId("Auto-trace..."))
But it opens a modal dialog.Is there some internal command using which I will be able to apply tracing, i.e. simulate pressing OK button or even change values above (tolerance, threshold...)? 
It seems internal commands are not documented by Adobe and I don't even know whether this is doable by using app.executeCommand(commandID) command.
I didn't find anything regarding autotrace even in plugin sdk. 
Can anyone help me with this problem?
Thanks!
 
This topic has been closed for replies.
Correct answer Tomas Sinkunas

Just a little bit of forum search and you realize that automating OK click isn't possible:

https://community.adobe.com/t5/after-effects/automat-the-auto-trace-process/m-p/10268070?page=1#M76582

1 reply

Tomas Sinkunas
Tomas SinkunasCorrect answer
Legend
February 24, 2020

Just a little bit of forum search and you realize that automating OK click isn't possible:

https://community.adobe.com/t5/after-effects/automat-the-auto-trace-process/m-p/10268070?page=1#M76582

Participant
February 24, 2020

Thanks Tomas.

it's a pity that After effects has limited scripting capabilities. I wish it had something like Photoshop's scripting listener plugin.

Justin Taylor-Hyper Brew
Community Expert
Community Expert
February 25, 2020

Tom is right, this isn't scriptable. But you can request this feature here if you'd like:

 

https://adobe-video.uservoice.com/forums/911311-after-effects