[Bf-python] Mesh modes
Campbell Barton
cbarton at metavr.com
Tue Jan 31 03:23:41 CET 2006
Ken some problems setting mesh mode- have had the same problem
http://www.elysiun.com/forum/viewtopic.php?t=58639 -
I have the same problem on a simple mesh with 2.4.1
mesh.mode = tempMe.mode
ValueError: invalid bit(s) set in mask
According to DNA_mesh_types.h
ME_TWOSIDED = 4
ME_AUTOSMOOTH = 32
ME_NOPUNOFLIP = 2
What is currently in the tempMe.mode is off by one. I set each mode one
by one in the ui and did the export with a print of the tmpMe.mode to
see them.
If you change the code mesh.mode = tempMe.mode to mesh.mode =
tempMe.mode - 1 it works.
Any ideas on why it's off by one?
--
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