VolumeData
-
On 30/07/2014 at 12:55, xxxxxxxx wrote:
I am trying to find out the color and intensity of light at a point in 3d space. I found a function (IlluminanceAnyPoint) in the python documentation that looks like it does what I want. How do I pass it a 3d point and get the illumination value back?
`
Here's my code:import c4d
import c4d.modules.render as renderdef main() :
b = render.VolumeData.IlluminanceAnyPoint([4,3,2],0,0)
print b
return Trueend
I get an error that says "IlluminanceAnyPoint requires a c4d.modules.render.VolumeData' object but received a 'list'"
How can I pass it a point's location vector and get back a value?
`