FORUMS: list search recent posts

Set beginning or end of work area to current time

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
phil largilliere
Set beginning or end of work area to current time
on Mar 24, 2016 at 1:24:07 pm

Hi everyone,

I would like to know if it's possible by script to set beginning and end of work area to current time.
By now, I have this code :

app.executeCommand(app.findMenuCommandId("Trim Comp to Work Area"));

It works perfectly, but I want exactly the opposite... I have thousands of comps to check, and I need that the work area starts at the first frame, and ends at the last for auto rendering.

Thank you for your help...


Return to posts index

Michael Szalapski
Re: Set beginning or end of work area to current time
on Mar 24, 2016 at 1:43:29 pm

There is a keyboard command to set the beginning of the work area (b) and there is a keyboard command to set the end (n). I don't know if that helps you find the scripting command, but pressing home b end n is pretty quick if you're doing it by hand. :)

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.


Return to posts index

phil largilliere
Re: Set beginning or end of work area to current time
on Mar 24, 2016 at 2:09:27 pm

Thank you. I know the shorcuts, I actually use them, but I need to do this on a really big number of projects and comps, that's why I'm looking for a script.


Return to posts index


John Cuevas
Re: Set beginning or end of work area to current time
on Mar 24, 2016 at 3:45:59 pm

It works perfectly, but I want exactly the opposite... I have thousands of comps to check, and I need that the work area starts at the first frame, and ends at the last for auto rendering.

If I understand, you want to make sure that instead of the "work area" you want the render area to be set to the full length of the comp? If so, you can do that in "Render Settings", just switch the time span from "work area only" to "Length of Comp" and then make that a template.

Johnny Cuevas, Editor
ThinkCK

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

Walter Soyka
Re: Set beginning or end of work area to current time
on Mar 24, 2016 at 7:12:52 pm

John's solution is perfect for you here -- tell the renderer to render the whole comp, not just the work area.

If you really want to set this via scripting, set the workAreaStart and workAreaDuration attributes of each CompItem.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Kevyn Tuleu Dourado
Re: Set beginning or end of work area to current time
on Dec 6, 2016 at 9:25:24 pm

I was looking for the same thing, and I found this:

app.project.item(1).workAreaStart = 0; //in seconds
app.project.item(1).workAreaDuration = 5; //in seconds


I found this here:
http://blogs.adobe.com/wp-content/blogs.dir/48/files/2012/06/After-Effects-...

And as this question can help more people I posted here 😉

I think it should help you!
Kevyn Tuleu Dourado

(Sorry for the bad english)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]