[Bf-committers] id property changes

joe joeedh at gmail.com
Thu Nov 13 03:04:45 CET 2008

On Wed, Nov 12, 2008 at 5:48 PM, Brecht Van Lommel <brecht at blender.org>wrote:

> 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.

Ok I'll have to take a look.

> 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..

Wrapping ID properties with RNA is an interesting idea. . .  From what
you're saying it sounds as if you'd like to use the RNA data API to access
both SDNA struct properties and ID properties?  That would require the RNA
api to support runtime property data (instead of generating accessors at
compile time, eh that is what it does, right?), which sounds like it would
be an entirely different set of code (from what I can figure).

Do you have any of your RNA code online anywhere, or in the 2.5 branch?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-committers/attachments/20081112/41be1559/attachment.htm 

More information about the Bf-committers mailing list