-
Wind from camera
Hi…
I am new to expressions and I am trying to simulate wind that moves a layer in 3d space…
I used this espression for the position and it works quite well (I want to affects only the x position of my layer)
wind=25
value+[wind*time,0,0]The only issue is that the position is linked to time so if I have my first layer at z=-1000 and my last layer at z=-10000 as the cameras moves forward my last layer is gone too early…
Is there a way to link the “wind” to the camera so it is the distance from the camera that affects the position of the layer?
something like
wind=25
value+[wind*”distance from the camera”,0,0] ???Thanks
pier