[Bf-python] Object Dupligroup naming conflict.

Campbell Barton cbarton at metavr.com
Sun Mar 19 16:54:29 CET 2006


Since adding groups there are a few things that need to be cleared up.
Objects interact with groups a number of ways.
There is.

JMS's dupli-patch deals with this, but with the addition of group module 
there are some conflicts.

* object.setDupliGroup()      ( get/set, Is the Dupligroup Button 
enabled- could be object.dupliGroupEnable?)
* object.dupliGroup           (The group that this object is instancing, 
implemented but kind of conflicts with function above)
* object.groups               (A list of groups that this object is 
apart of - Not currently implimented)




*# Proposed change*
Change JMS's functions so...
get/setDupliVert/Group/Frames is

ob.dupliGroupEnable=True/False
ob.dupliVertEnable=True/False
ob.dupliFrameEnable=True/False
... This is more explanatory  because it indicates that there may be no 
dupli object. Just that there enabled.

To be consistent, replace ob.getDupliObjects() with ob.dupliObjects

keep:  object.dupliGroup=Group
Add:    object.groups

Any comments?

An issue is that Im proposing we dont Bother with get/set functions



- Cam



More information about the Bf-python mailing list