/t5/after-effects-discussions/opacity-linking-to-camera-location/td-p/1680157Jan 11, 2009
Jan 11, 2009
Copy link to clipboard
Copied
I may have asked this before, but I cannot find the question.
I'd like to link the opacity of a 3D layer to the location of the camera - so that items become more opaque when they become (for example) 500px from camera. I'd want to adjust the number to suit the animation.
Is this easy? Any resources that anyone knows of to do this?
/t5/after-effects-discussions/opacity-linking-to-camera-location/m-p/1680158#M148233Jan 11, 2009
Jan 11, 2009
Copy link to clipboard
Copied
This will ramp the opacity from 0 to 100 as the layer moves from 0 to 500 pixels away from the camera. Should be easy to modify if it's not exactly what you're after:
/t5/after-effects-discussions/opacity-linking-to-camera-location/m-p/1680159#M148234Jan 11, 2009
Jan 11, 2009
Copy link to clipboard
Copied
That is almost perfect - thank you very much for your help.
One more question. . .
How would I link the "maxDist" to the X value of a null - so that I can move that null and easily adjust the value?
I have MANY layers that I need to use this on, and it's easier to test this way to get the correct settings rather then copy/past the script OVER&OVER&OVER.
/t5/after-effects-discussions/opacity-linking-to-camera-location/m-p/1680160#M148235Jan 11, 2009
Jan 11, 2009
Copy link to clipboard
Copied
LATEST
I figured it out!
There's hope for me yet!
I have to make sure that x y and z values for my null are computed separately by right-clicking on the null's position attribute and selecting "separate dimensions".