C.Smith
11-20-2007, 05:59 PM
I'm trying to pass the global position of the active camera to a node in Xpresso.
I'm using:
var cam;
cam=doc->GetRenderBaseDraw()#BASEDRAW_DATA_CAMERA;
Then getting the matrix and position from var cam.
However, in Xpresso it won't see the document. I tried adding doc (and even op) in the main() but that just gets an error.
Is it even possible to get the active camera whithin the Xpresso coffee node?
I'm using:
var cam;
cam=doc->GetRenderBaseDraw()#BASEDRAW_DATA_CAMERA;
Then getting the matrix and position from var cam.
However, in Xpresso it won't see the document. I tried adding doc (and even op) in the main() but that just gets an error.
Is it even possible to get the active camera whithin the Xpresso coffee node?
