Activity › Forums › Adobe After Effects › Set beginning or end of work area to current time
-
Set beginning or end of work area to current time
Posted by Phil Largilliere on March 24, 2016 at 1:24 pmHi 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…
Kevyn Tuleu dourado replied 9 years, 5 months ago 5 Members · 5 Replies -
5 Replies
-
Michael Szalapski
March 24, 2016 at 1:43 pmThere 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.
-
Phil Largilliere
March 24, 2016 at 2:09 pmThank 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.
-
John Cuevas
March 24, 2016 at 3:45 pmIt 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. -
Walter Soyka
March 24, 2016 at 7:12 pmJohn’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 | RenderBreak [blog] | Profile [LinkedIn] -
Kevyn Tuleu dourado
December 6, 2016 at 9:25 pmI 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 secondsI found this here:
https://blogs.adobe.com/wp-content/blogs.dir/48/files/2012/06/After-Effects-CS6-Scripting-Guide.pdf?file=2012/06/After-Effects-CS6-Scripting-Guide.pdfAnd as this question can help more people I posted here ????
I think it should help you!
Kevyn Tuleu Dourado(Sorry for the bad english)
Reply to this Discussion! Login or Sign Up