I have the default Python 2.3 in Panther and I’m trying to get the Blenderman script to work. However, I get an error with the Blender.Scene.getCurrentCamera() function because it is returning NoType instead of the current camera.
I read the 2.3 Blender Python docs and it says that getCurrentCamera() is now a member of Render.RenderData. Buuuut, when I do
context = scene.getRenderingContext() camera = context.getCurrentCamera()
it gives an AttributeError saying the getCurrentCamera() is not a function of RenderData despite the fact other functions in the 2.3 spec work properly.
I can get the camera in the scene by using
camera = Blender.Camera.Get()
but that won’t be good enough for multiple cameras in a scene. How do I get the getCurrentCamera function to work in Mac OS 10.3.5 with Blender 2.34 & Python 2.3?