-
Opacity of a layer in relation to the camera
Hi. I understand how expressions work but I am not very familiar with the syntax or how you integrate variables from different objects into one expression. Hopefully there is an answer to this:
I want to create a movie in which the camera flies straight ahead through a cluster of images and videos all randomly positioned in z-space. I want each video to fade to transparent as the camera approaches within a certain distance so you can alway see what is behind it.
I can fade out the opacity manually but it’s proving to be very time consuming, especially if I re-position all my images and videos in z-space.
Is there an expression which can determine the distance between the camera and an object, then adjust the opacity of the object so that when the camera is within say, 100 pixels of it and approaching 0, it fades the object’s opacity from 100% to 0% accordingly…..?
I would probably eventually want to be able to adjust the distance at which the object starts to fade so if you could further explain this I’d be pretty grateful.
I hope I’m making sense!
Thanks in advance.
H