Page 1 of 1

Create a motion path from a script?

Posted: March 14th, 2013, 4:58 am
by phase4
The answer is probably no but I'd thought to ask anyway. Is it possible to create a motion path from a mask through a script?
Normally you'd select the "mask path" property, press copy, select the the "position" property from another object and press paste.
To optimize my workflow it would be nice if this could be automated with a script. Is this possible?

Rob

Re: Create a motion path from a script?

Posted: March 14th, 2013, 10:30 pm
by Dan Ebberts
I haven't tried it, but I'm guessing it would be possible by having the script issue menu commands combined with selecting/deselecting the appropriate properties. Pretty much mimicking the way you do it by hand. Depending on exactly what you're trying to do though, you might need AE CS6 so the script can give focus to the appropriate comp.


Dan

Re: Create a motion path from a script?

Posted: March 15th, 2013, 1:33 am
by phase4
Wow Dan, thanks for replying and showing me the right direction. Using app.executeCommand() is working perfectly.
I even managed to move the (AE defaulted) first and last keyframes of the motion path afterwards, with help from this document:
http://www.seventy75five.com/public/misc/multicopy.jsx

Thanks a lot!