[Bf-python] Copying data

Campbell Barton cbarton at metavr.com
Thu Feb 10 21:14:09 CET 2005


Hi All its good to be back in Australia...
I was thinking it would be nice to be able to copy data in Blenderm 
including but notlimited to
NMface, NMedge, NMVert, NMesh...

  faceCopy = f.copy()

This saves the current only way..
  faceCopy = NMesh.Face()
  faceCopy.mat = f.mat
  faceCopy.image = f.image
  faceCopy.mode = f.mode
  faceCopy.smooth = f.smooth
  faceCopy.uv= f.uv[:]
  faceCopy.uv= f.col[:]


The same with verts- having a copy function could maintain vert groups, 
weight's etc.

Note that a copied vert/face/edge would not be linked to the mesh, they 
would need to have verts added and appended.

Any Objections to
NMface.copy()
NMedge.copy()
NMVert.copy()
NMesh.copy()

?
- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list