[Bf-python] Mesh custom layer api change

Martin Poirier theeth at yahoo.com
Mon Mar 24 15:03:21 CET 2008


--- Campbell Barton <ideasman42 at gmail.com> wrote:

> Hi, currently python can add custom data layers to a
> mesh, (added by Briggs)
> 
> One part of the API Id like to change is how you
> select a layer type.
> 
> mesh.addPropertyLayer(Mesh.PropertyTypes.FLOAT)
> mesh.addPropertyLayer(Mesh.PropertyTypes.INT)
> mesh.addPropertyLayer(Mesh.PropertyTypes.STRING)
> 
> Would it be ok to change this to use python types?
> 
> mesh.addPropertyLayer(float)
> mesh.addPropertyLayer(int)
> mesh.addPropertyLayer(str)

And if you want to check the type of an existing
property layer, how would it work and what would be
returned?

It should be consistent in reads and writes.

Martin


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the Bf-python mailing list