TerianSilva
07-18-2009, 05:09 PM
Hi,
to render a zDepth map and provide visual feedback for the focus region, i linked some values with wired parameters and it works fine.
But I want to show the focus start and end with a plane. So I took a plane, matched it to the camera position and added the axis value for the near distance.
All works fine in the script controller but... the plane has to move in local axis and it is always moving in gimbal/world/whatever axis.
I know that you normally use "in coordsys Local" to move in local axis but I have no idea how to apply that in the script expression.
Here is an image to illustrate the whole scenario:
http://img232.imageshack.us/img232/7707/20090718175649.gif
I assume it is just a question of the correct syntax but I have no clue. Just putting "in coordsys local" in front of all or just the value behind the plus(+) does not help.
Regards,
marcus
to render a zDepth map and provide visual feedback for the focus region, i linked some values with wired parameters and it works fine.
But I want to show the focus start and end with a plane. So I took a plane, matched it to the camera position and added the axis value for the near distance.
All works fine in the script controller but... the plane has to move in local axis and it is always moving in gimbal/world/whatever axis.
I know that you normally use "in coordsys Local" to move in local axis but I have no idea how to apply that in the script expression.
Here is an image to illustrate the whole scenario:
http://img232.imageshack.us/img232/7707/20090718175649.gif
I assume it is just a question of the correct syntax but I have no clue. Just putting "in coordsys local" in front of all or just the value behind the plus(+) does not help.
Regards,
marcus
