[Bf-python] Some Recent Patches to BPython
Campbell Barton
cbarton at metavr.com
Fri May 6 11:01:07 CEST 2005
Hi, Recently have added some small usefull patches to the patch tracker.
Heres a list
*** NMesh.GetNames()
https://projects.blender.org/tracker/index.php?func=detail&aid=2523&group_id=9&atid=127
- Solves the problem where it is impossible to get mesh objects with a
fake user/no users. Unless you alredy knew the name.
- Provides a much faster and simpler method the the current Python
# Gets a list of unique nmesh names
nmesh_names = []
for ob in Objects.Get():
____if ob.getType() == 'Mesh':
________if ob.getData(name_only=1) not in nmesh_names:
____________nmesh_names.append( ob.getData(name_only=1) )
# Now we have a list.
*** Scene.getActive()
https://projects.blender.org/tracker/index.php?func=detail&aid=2521&group_id=9&atid=127
- Solves the problem where Object.GetSelected()[0] was assumed to be the
active object, which is not always true since the active object for a
scene does not have to be selected.
*** BGL URL Updates. All the openGL links were broken, this updates with
new links.
- These are all simple patches, if sombody could investigate, id much
appretiate.
- Cam
More information about the Bf-python
mailing list