Trim layers based on Opacity - save a lot of render time

What type of scripts do you need?

Moderator: byronnash

kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

My mistake.
That's some leftover I forgot to delete... :oops:
Delete that line, and everything should work fine.
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

Thanks.
Everything works fine now. I was trying to understand your script and couldn't understand that line.

Now antoher (stupid ?) question : does AE calculate 3d layers that are not in the field of view, for example layers behind the camera as it moves ?
kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

Thank you Salvador for the correction,
I've corrected the script of my last post, so it is without the error now.

AE does not render 3d layers that are outside of the camera's field of view (for example, behind the camera).
However, it WILL render 3d layers that are in the field of view, but being obscured by other layers. Even if they are completely obscured ! And in this case you'd better give them zero opacity (by keyframes or expression), and then run my script, so they will be trimmed.

Koby.
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

Hi again,

I'm using your script on a project that's been made by three different people. The problem I have is that the script runs on every layer and I have some layers for wich I want to control the outpoint. Is it difficult to have the script run only on selected layers ?

Thanks,

Salvador
kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

That's more complicated to work on selected layers, because I split layers when needed and create new layers, thus changing the layer's selection. However, I've changed the script so it will not work on locked layers. So you could lock the layers you don't want the script to work on, and then launch the script.

I hope that helps.
Koby.
Optimize Opacity v2.jsx.zip
(1.63 KiB) Downloaded 929 times
Last edited by kobyg on November 21st, 2008, 3:47 pm, edited 1 time in total.
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

Thanks again, I'll check it right now.
Post Reply