[Bf-python] More Proposed API changes.

Campbell Barton cbarton at metavr.com
Thu Mar 8 17:46:29 CET 2007


Hi, here are some changes Id like to make...

1) remove oops functions - getOopsLoc,setOopsLoc, getOopsSel, setOopsSel
   They are too slow and oops data often isnt even available.
   I dont think anyone ever uses them, either.
   - I still like the possibility of having python arrange oops blocks 
but the current API dosnt allow for this well at all.
- Also note that I added in the oops functions originaly but never used 
them because if their limitations.


2) break the Lattice API in favor of something more consistent.
   At the moment the lattice API has problems, for instance many 
attributes raise an error if set to them self because they give and take 
different kinds of data.

  lat.setKeyTypes(lat.getKeyTypes) - raises an error at the moment.

This is an API that isnt used much anyway, After the metaball API 
rewrite nobody complained. - Though I could be wrong.


3) Move Blender.Main.* into Blender.*
   Willain suggested we discuss this on the list.

   So there wouldbe Blender.scenes, Blender.meshes etc...

   This would be ifdef'd in a way that it could be easily omitted from 
next release if people arnt keen on having it there.









More information about the Bf-python mailing list