Hi,<br><br>I&#39;ve implemented the backend for RNA collection add capable of adding a single item to an array or listbase. The interface for add takes PointerRNA as item to add.<br><br>I want the add function to return PointerRNA of the new item added, and If the item is NULL, then Main struct implementation could create a new datablock so that the following would be possible:<br>
<br>mesh = bpy.data.meshes.add()<br>object = bpy.data.objects.add()<br>object.set_data(mesh)<br>scene.add(object)<br><br>Python would detect empty param list and pass NULL.<br><br>Is this design ok?<br><br>Will be happy to hear other ideas too :)<br>
<br>More questions later...<br>Arystan<br>