access and control application (AE) windows from a script

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
beginUndoGroup
Posts: 81
Joined: November 27th, 2012, 6:41 am

Hello,
i'm trying to (1:) access the Smoother window, (2:) set a value to smooth, and (3:) smooth a given set of layers properties;
all this from within a UI script. I'm stuck, and don't even know if it is possible.

The scripting guide doesn't mention other windows like the 'Smoother' or the 'Motion Sketch' palettes etc, and these windows do not appear in the AE Object model.
From reading Dan Ebbert's comments on the Cow forum, i know that:

Code: Select all

app.executeCommand(app.findMenuCommandId("Smoother"));
does open/close the Smoother palette (and since app.findMenuCommandId("Smoother") = 5017, app.executeCommand(5017) does the same thing, language free).

But this doesnt help me much since it doesnt tell how to pass instruction to the Smoother window.
Any information about this welcome, even cruel ones (it can't be done etc...).
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

As you suspected, it can't be done. The closest you can do is probably use a script to apply a smooth expression to the property.
beginUndoGroup
Posts: 81
Joined: November 27th, 2012, 6:41 am

Thank you very much for your answer.

I'm pretty disappointed, but at least i know now.
I was mostly interested in reducing the number of keyframes more than smoothing, so the smooth expression won't help much.
Thank you for suggestion anyway.
Post Reply