Page 2 of 2

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

Posted: November 14th, 2008, 6:16 am
by kobyg
My mistake.
That's some leftover I forgot to delete... :oops:
Delete that line, and everything should work fine.

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

Posted: November 14th, 2008, 6:21 am
by salvazalvi
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 ?

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

Posted: November 14th, 2008, 8:58 am
by kobyg
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.

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

Posted: November 21st, 2008, 10:58 am
by salvazalvi
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

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

Posted: November 21st, 2008, 3:41 pm
by kobyg
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 960 times

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

Posted: November 21st, 2008, 3:47 pm
by salvazalvi
Thanks again, I'll check it right now.