[Bf-python] Copying Blender Data from python

Campbell Barton cbarton at metavr.com
Sat Aug 12 15:12:25 CEST 2006


One irritation I have had for a while with the bpython api is how hard 
it is to copy data... often you need to make a special python function 
that is 10-20 lines copying all the attributes and making the new data 
in a new, blank object.

Id like to start adding in the __copy__ function  to blender datablocks 
accessible from python.

then you could just call mesh.__copy__() or import copy and do a
newme=  copy(mesh)

or has anyone else got an idea of how it might be done better ?

- Cam



More information about the Bf-python mailing list