[Bf-committers] Python API / CVS-snapshot
Jacques Guignot
bf-committers@blender.org
Sat, 12 Jul 2003 11:36:58 +0000
Meino Christian Cramer wrote:
>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.
>
>
>
>
Yes, this point ha been fixed, now Camera object have a lens attribute.
I'm waiting Mivhel and Willian opinion to commit the modificatiobs
allowing yable to run
(read bf-python!)