I have been busy working on the RenderB*tch export code.
SO far, things are progressing rapidly, I can handle mutiple objects, and
correctly handle the single vertex list.
One thing I am stuck on is getting the LocX, LocZ, and LocY of the main camera.
I tried the following code:
#Get Camera Position Cams = Blender.Camera.Get() OorCam = Cams Pos = OorCam.getPosition() Xloc = round(OorCam.LocX,3) Yloc = round(OorCam.LocY,3) Zloc = round(OorCam.LocZ,3)
but Blender doesn’t seem to like this, as it spits the following error
Traceback (most recent call last): File "xport03.py", line 54, in EventGUI File "xport03.py", line 163, in Xport SystemError: error return without exception set
Line, 163 being
Xloc = round(OorCam.LocX,3)
Any suggestions? I would have thought this would have worked…
But it doesn’t.
thanks in advance