|
| I'm writing a script to send a single frame to the render queue from a
selected composition. Everything is working great, except I can't seem
to get AE to just set 1 frame to render. Here's what I have when it
comes down to it:
app.project.renderQueue.items[i].timeSpanStart = 0;
app.project.renderQueue.items[i].timeSpanDuration =1/29.97; <-- this
line gives error
When it gets to this part of the script, I get an error saying "After
Effects error: Value 0.03 out of range 0.03 to 71654440". This seems
silly to me since 1/29.97 is equal to 0.03336 and is greater than 0.03.
The reason why I'm dividing 1 by 29.97 is to get the amount of time in
seconds there is per frame since timeSpanDuration only takes time in
seconds (which I think is a major limitation). I've already told the
render queue to work with an Image Sequence output module, so I know
that's not causing the duration to not work.
Does anyone know how I can get this to only send the first frame to the
render que? Or maybe someone knows of a great scripting resource for
After Effects? I'm editing the scripts in ExtendScript Toolkit. Thanks
in advance for the help.
|
|