<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 5:48 PM, Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brecht@blender.org">brecht@blender.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<div class="Ih2E3d"><br>
On Wed, 2008-11-12 at 13:34 -0700, joe wrote:<br>
&gt; It seems the current C API of id properties is rather lacking. &nbsp;As<br>
&gt; such, it&#39;d be great if everyone could send a list of their ideas/needs<br>
&gt; in this area, especially relating to the 2.5 project. &nbsp;Because of the<br>
&gt; 2.5 project I figure I should get on top of this.<br>
<br>
</div>ID properties are being used for operators to define the tool settings,<br>
and some convenience functions were defined for that in<br>
windowmanager/intern/operators, I think those would be better as part of<br>
the ID property API itself. So for that basically a convenient way to<br>
get/set them is needed, pretty much like you proposed here.<br>
</blockquote><div><br>Ok I&#39;ll have to take a look. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The python functions look interesting, but I can&#39;t think of many<br>
applications where you want to do this in the C code.<br>
<br>
There is also the issue of RNA. This will also wrap ID properties to<br>
get/set them as any other RNA properties, but I&#39;m still figuring out how<br>
they should work together exactly:<br>
* Operators have to define RNA for their settings. It would probably be<br>
good to automatically generate ID properties from the RNA.<br>
* How is RNA defined for user created ID properties? If the data is part<br>
of a blender itself it&#39;s built in, and a render plugin for example could<br>
provide it as part of whatever other registration it needs to do. For<br>
user created ID properties in character rigs RNA may need to be stored<br>
along with the ID properties in the .blend file..<br>
</blockquote></div><br>Wrapping ID properties with RNA is an interesting idea. . .&nbsp; From what you&#39;re saying it sounds as if you&#39;d like to use the RNA data API to access both SDNA struct properties and ID properties?&nbsp; 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).<br>
<br>Do you have any of your RNA code online anywhere, or in the 2.5 branch?<br><br>Joe<br>