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

Joe Eagar joeedh at gmail.com
Sun Nov 25 03:29:37 CET 2007


Why not just add support for pyconstraints to make use of multiple targets?

Joe

Campbell Barton wrote:
> 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.
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
>   




More information about the Bf-python mailing list