access NMesh.FaceModes from python script

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Mon Apr 28, 2003 5:15 pm

access NMesh.FaceModes from python script

Post by blackie »

hi all !
can someone tell me how to access NMesh.FaceModes from a python script.
it should work for something like that:

if mesh.facemode <this is the thing i need> == NMesh.FaceModes.BILLBOARD:
do something

thanks a lot


Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman »

if f.mode & NMesh.FaceModes['BILLBOARD']:

# Turn billboard on for eg
f.mode &=~NMesh.FaceModes['BILLBOARD']

# Turn bilboard off for eg.
f.mode |= NMesh.FaceModes['BILLBOARD']

Post Reply