What should we do about property getters?&nbsp; I can think of two designs for them, plus the one in the 2.5 branch:<br><br>1. Pass in a default value to the getter, which is used to create the property (if necessary) or replace any incompatible existing ones (for example, floats and ints and doubles might be considered compatible, but floats and arrays would not).<br>
2. Same as above, only instead of simply deleting the incompatible properties, rename them.<br>3. The solution in the branch, where the functions return a status indicator, and you have to pass in a pointer to some data that gets filled.<br>
<br>Of the three, I think #2 is safest, #1 is easiest, but #3 might be the best way to go.<br><br>Joe<br><br><div class="gmail_quote">On Sun, Nov 16, 2008 at 2:23 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;">Hi,<br>
<div class="Ih2E3d"><br>
&gt; Wrapping ID properties with RNA is an interesting idea. . . &nbsp;From what<br>
&gt; you&#39;re saying it sounds as if you&#39;d like to use the RNA data API to<br>
&gt; access both SDNA struct properties and ID properties? &nbsp;That would<br>
&gt; require the RNA api to support runtime property data (instead of<br>
&gt; generating accessors at compile time, eh that is what it does,<br>
&gt; right?), which sounds like it would be an entirely different set of<br>
&gt; code (from what I can figure).<br>
<br>
</div>It&#39;s not a big change, will commit support for that soon. With RNA a C<br>
API with accessor functions for all properties could be autogenerated,<br>
but that is not done currently.. there&#39;s no immediate application for<br>
that as far as I can see, I think it would be mostly useful for C<br>
plugins at some point.<br>
<div class="Ih2E3d"><br>
&gt; Do you have any of your RNA code online anywhere, or in the 2.5<br>
&gt; branch?<br>
<br>
</div>It&#39;s in the RNA branch, there is a viewer for data using RNA in the<br>
outliner, and docs in the wiki:<br>
<a href="http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA" target="_blank">http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA</a><br>
<div><div></div><div class="Wj3C7c"><br>
Brecht.<br>
<br>
_______________________________________________<br>
Bf-committers mailing list<br>
<a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
</div></div></blockquote></div><br>