[Bf-committers] id property changes

Brecht Van Lommel brecht at blender.org
Thu Nov 13 01:48:11 CET 2008


Hi,

On Wed, 2008-11-12 at 13:34 -0700, joe wrote:
> It seems the current C API of id properties is rather lacking.  As
> such, it'd be great if everyone could send a list of their ideas/needs
> in this area, especially relating to the 2.5 project.  Because of the
> 2.5 project I figure I should get on top of this. 

ID properties are being used for operators to define the tool settings,
and some convenience functions were defined for that in
windowmanager/intern/operators, I think those would be better as part of
the ID property API itself. So for that basically a convenient way to
get/set them is needed, pretty much like you proposed here.

The python functions look interesting, but I can't think of many
applications where you want to do this in the C code.

There is also the issue of RNA. This will also wrap ID properties to
get/set them as any other RNA properties, but I'm still figuring out how
they should work together exactly:
* Operators have to define RNA for their settings. It would probably be
good to automatically generate ID properties from the RNA.
* How is RNA defined for user created ID properties? If the data is part
of a blender itself it's built in, and a render plugin for example could
provide it as part of whatever other registration it needs to do. For
user created ID properties in character rigs RNA may need to be stored
along with the ID properties in the .blend file..

Brecht.




More information about the Bf-committers mailing list