Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
olivier28
Topic Author
Posts: 1
Joined: Wed Feb 11, 2009 4:26 am

turning layers in blanck and white according to the Z positi

Wed Feb 11, 2009 6:53 am

Hello,

I'd like to transform all the comp of a projet in render where the layers are white when they're close to the camera and black when they're far away (with all the gray scale between). It's working if I'm using the tint filter and ajusting the parameters by hand but I'm sure that it's possible to do it simply with expression ou script. May be just something that could change the tint according the Z position (from white to black) or ajusting the transparency (in this case I could change the background to black).

Does someone as a solution ?

thanks (and sorry for my poor english :-) )

Olivier
 
Yenaphe
Posts: 84
Joined: Tue Feb 03, 2009 6:30 pm
Location: Paris - France
Contact:

Re: turning layers in blanck and white according to the Z positi

Wed Feb 11, 2009 7:13 pm

A few weeks ago, Andrew Kramer posted a presset on his website that does what you want.

http://www.videocopilot.net/tutorials/3d_falloff/

But the basic idea would be to create a simple expression that gets the distance of your layers anchor points to the camera, and then do a linear between your min-max values to 0-100 value of your tint.

Who is online

Users browsing this forum: No registered users and 3 guests