[Bf-python] Another Mesh question
Ken Hughes
khughes at pacific.edu
Thu Mar 2 22:18:58 CET 2006
Chris Want wrote:
>
> OK, next question:
>
> Why can I do this:
>
> me.verts = None
>
> but I can't do this:
>
> me.faces = None
>
> (python says me.faces is read only).
We implemented PVerts (non-wrapped vertices) and these can be assigned
to me.verts through the Mesh_setVerts setter. Since there no PFaces or
PEdges, those setters aren't implemented. The only thing they would
probably be good for is just what you're trying to do -- clearing the
whole edge or face list.
> Related to this question: what is the best way
> to wipe all of the data from a mesh?
Actually, me.verts = None is probably the best; after looking at the
code again, it calls free_mesh() and NULLs all the BPy object's pointers.
Ken
More information about the Bf-python
mailing list