[Bf-committers] Python API / CVS-snapshot
Meino Christian Cramer
bf-committers@blender.org
Sat, 12 Jul 2003 10:45:03 +0200 (CEST)
Hi,
with current cvs snapshots of the bf-blender the following python
code fails:
camob = Object.get('Camera')
camname = "Camera"
cam=camob.getData()
if xRes > yRes:
aspect = 1
else:
aspect = float(xRes) / float(yRes)
focale = cam.Lens / (aspect * 32.0) <<<<-----ERRRRRR
At the marked point, "Lens" could not be found.
(This is a snippet from the yablex exporter.)
Keep rendering !
Meino