Page 1 of 1

access and control application (AE) windows from a script

Posted: December 1st, 2012, 11:09 am
by beginUndoGroup
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...).

Re: access and control application (AE) windows from a scrip

Posted: December 4th, 2012, 9:04 am
by Paul Tuersley
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.

Re: access and control application (AE) windows from a scrip

Posted: December 4th, 2012, 10:50 am
by beginUndoGroup
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.