Hi Campbell,

On Thu, Sep 9, 2010 at 9:18 AM, Campbell Barton <ideasma...@gmail.com> wrote:
> --- Proposed solution
>
> Follow the way operators work, treat properties as class attributes so...
>   bpy.types.Scene.BoolProperty(attr="myprop")
>   bpy.types.Scene.RemoveProperty(attr="myprop")
>  ...is replaced by
>   bpy.types.Scene.myprop = bpy.props.BoolProperty()
>   del bpy.types.Scene.myprop

It is certainly less verbose, but didn't we recently move away from
treating properties as attributes in the BGE? For consistency, maybe
it should be:

   bpy.types.Scene["myprop"] = bpy.props.BoolProperty()
   del bpy.types.Scene["myprop"]

On the other hand, using attributes might be better if properties are
more formally defined than in the BGE.

Cheers,
Alex
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to