Scripting OUTSIDE the program?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  09 September 2012
Scripting OUTSIDE the program?

Hello,

I've been searching Google for a bit to try to dig up info on Adobe AfterEffects scripting, but I can't find the answer to a crucial question:

Is there a way to run a script programatically?

The effect I am going for is rather simple: insert the chosen text, and/or audio, into a specific section of a video, and then have Adobe AfterEffects generate the video from a template file. The text/audio would be selected from separate filenames fed into the script, for example.

Is this sort of thing possible? Any tips/ideas/thoughts on this? Thanks!
 
  09 September 2012
I found the Adobe After Effects script reference, and I have managed to create a script that modifies a text layer, eg:


 var current_text_property = app.project.item(1).layer(1).property("sourceText")
 current_text_property.setValue("Abc.")
 alert (current_text_property.value.text)
 


There are a number issues that I can't get through, though:
* When I run the script using the command line, via afterfx.exe, absolutely nothing happens:
"afterfx.exe -r [script file location]". Nothing happens regardless whether AE and the test file is open or not. Why doesn't running the script via command line work? Even a simple alert didn't work. (sending the actual alert command [with "-s"] instead of a script file did work.)
* I want to open the file via the script. How do I do this?
* I want to either save the file via the script, or render via the script. How do I do this?

Thanks!
 
  09 September 2012
I figured out everything except loading via the command line. Seems to be problems with relative/absolute paths and spaces?
 
  10 October 2012
Hi,

to execute a script from the command line, I usually use full path and it works nice for me.

Example:
"C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -r C:\Path\To\My\Script\MyScript.jsx


On MacOS you can run an script via Apple Script.
__________________
mamoworld.com - tools and tutorials for After Effects
 
  10 October 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:44 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.