AE ENHANCERS

Expressions/Scripts/Presets
It is currently Wed May 22, 2013 2:03 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Trim comp to longest layer script?
PostPosted: Tue Jul 10, 2007 11:02 am 
Offline

Joined: Tue Jul 10, 2007 10:48 am
Posts: 5
Hi.

I'm trying to solve this, but just tying my feeble, designer brain in knots...
It's got to be pretty simple, I'm sure:

1. Open comp
2. Identify longest layer (time)
3. Set Work Area to longest layer
4. trim comp to work area
5. Close comp

Any help greatly appreciated :-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 2:22 pm 
Offline

Joined: Tue Nov 29, 2005 3:00 am
Posts: 201
Location: Paris
Hi fiveshorts,
I thought it was easy but for some unknown reasons I can't get it to work properly...maybe other enhancers will take look at it.
- you have to close the "timeline frame" (otherwise only the current comp is updated)..
- error occurred if some layers have been shifted beyond the comp duration

here is my test code (ae7), select comps in the project panel and execute the following script:

http://www.nabscripts.com/Forum/Scripts/myScripts/trimWorkArea.jsx


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 2:50 pm 
Offline

Joined: Tue Jul 10, 2007 10:48 am
Posts: 5
Thanks nab,

It's foxing me too, not that I'm any sort of coder — just trying to script as many annoying, repetitive tasks as possible...

I'm happy for it to be an 'in-comp' script, ie. to only be applicable to an open, active comp, if that's easier?

Let's see if anyone else can shed some light.

thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 3:00 pm 
Offline

Joined: Tue Jul 10, 2007 10:48 am
Posts: 5
Your script is determining the correct duration of the work area at least... when all layers are inside end point. I couldn't work that one out. Now to get it to see beyond the end, extend the comp duration to the last out point and trim the comp accordingly...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 16, 2007 5:58 pm 
Offline

Joined: Tue Nov 29, 2005 3:00 am
Posts: 201
Location: Paris
for further reference...
I noticed Jeff also experienced odd behavior with the workAreaDuration attribute in his rd_RenderLayers.jsx
http://www.redefinery.com/ae/view.php?item=rd_RenderLayers
Look into the code to see how he fixed the problem ( "- 0.001" stuff)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group