[Bf-funboard] Py Drivers - Possible feature enhancement.

Campbell Barton ideasman42 at gmail.com
Thu Nov 22 18:29:13 CET 2007


Cessen and I were talking about possible PyDriver enhancements, One
problem at the moment is the difficulty in referencing a bone or even
an object.
To reference a posebone for instance...

 ob['someObject']

Since cessen also does lots of rigging related stuff, to get a posebone...

 ob['someObject'].getPose().bones['someBone']

If you want 2 posebones, this gets really long to type in.

One possible solution would be to have the driver object and bone
options (that are normally there) - also there with pydrivers. this
could be given a name like var1 for the pydrivers, this would need to
be clear from the interface.

An issue is that you might want any number of objects/bones
references, at the moment the interface only allows for 1, maybe for
this we could have 2 object and bone inputs.

Of course this would not change how existing scripts work, and you
could always refer to a 3rd item the existing way, this would just
allow referring to objects/bones much more easily, and using the
existing bone selection method.

It also has the advantage that renaming an object wont mess up the
pyDriver since blender references the object (not its name)

Any opinions on this?, Id like to try adding it.


More information about the Bf-funboard mailing list