[Bf-python] bpy *tips & tricks* docs added.

Campbell Barton ideasman42 at gmail.com
Sat Sep 10 12:33:53 CEST 2011


Thanks for pointing this out though I think this should really be
included in the bpy.props documentation.

On Fri, Sep 9, 2011 at 2:52 AM, HartsAntler <goatman.py at gmail.com> wrote:
> You might want to add something that confused me today.  Python defined RNA
> can only be applied to some objects, types that are "datablocks"
> ## this will not work ##
> bpy.types.GameObjectSettings.myprop = IntProperty(...)
> bpy.context.active_object.game.pyprop = 1
> AttributeError: 'GameObjectSettings' object attribute 'myprop' is read-only
>
> ## this is valid ##
> bpy.types.Object.myprop = IntProperty(...)
> bpy.context.active_object.pyprop = 1
>
> On Thu, Sep 8, 2011 at 6:56 PM, Campbell Barton <ideasman42 at gmail.com>
> wrote:
>>
>> Hi, just added tips & tricks section for the python api docs.
>>
>>
>> http://www.blender.org/documentation/blender_python_api_2_59_2/info_tips_and_tricks.html
>>
>> Interested in feedback / suggestions for things I might have missed out.
>>
>> --
>> - Campbell
>> _______________________________________________
>> Bf-python mailing list
>> Bf-python at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-python
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
>



-- 
- Campbell



More information about the Bf-python mailing list