You might want to add something that confused me today.  Python defined RNA can only be applied to some objects, types that are <i>"datablocks"</i><div><br></div><div>## this will not work ##</div><div>bpy.types.GameObjectSettings.myprop = IntProperty(...)</div>
<div>bpy.context.active_object.game.pyprop = 1</div><div>AttributeError: 'GameObjectSettings' object attribute 'myprop' is read-only<br><br></div><div>## this is valid ##</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
bpy.types.Object.myprop = IntProperty(...)</div></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>bpy.context.active_object.pyprop = 1</div></div><div><br></div><div><br><div class="gmail_quote">
On Thu, Sep 8, 2011 at 6:56 PM, Campbell Barton <span dir="ltr"><<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, just added tips & tricks section for the python api docs.<br>
<br>
<a href="http://www.blender.org/documentation/blender_python_api_2_59_2/info_tips_and_tricks.html" target="_blank">http://www.blender.org/documentation/blender_python_api_2_59_2/info_tips_and_tricks.html</a><br>
<br>
Interested in feedback / suggestions for things I might have missed out.<br>
<font color="#888888"><br>
--<br>
- Campbell<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</font></blockquote></div><br></div>