NMesh.FaceModes dict, short update
Closed, ArchivedPublic

Description

This script :

import Blender
for M in Blender.NMesh.FaceModes.keys():
print M, Blender.NMesh.FaceModes[M]

returns :

ALL 65535
SHAREDVERT 8
OBCOL 2048
LIGHT 16
DYNAMIC 1
TILES 128
TEX 4
INVISIBLE 1024
BILLBOARD 4096
TWOSIDE 512
SHADOW 8192
SHAREDCOL 64
HALO 256

but :
1/ SHAREDVERT seems to be unused in uv face modes .
2/ there is no TEXT keys for TF_BMFONT value

and this one :

import Blender
ME=Blender.Scene.getCurrent().getActiveObject().getData()
for f in ME.faces:
f.mode=Blender.NMesh.FaceModes.ALL
ME.update()

returns an OverflowError .

So here is a small patch to correct these point .
Regards, jms

Details

Type
Patch

Add Comment