Community
from pyfbsdk import *
## print all property of a FBCharacter
def PrintCharProp(pCharacter):
for prop in pCharacter.PropertyList:
if prop !=None:## In case some property are none object
print prop.GetName()
## return a list of InplaceLock Property
def GetInPlaceLockProp(pCharacter):
axes =
ret = list()
for idx in range(3):
ret.append(pCharacter.PropertyList.Find("InplaceLock"+axes))
return ret
Chars = FBSystem().Scene.Characters
if len(Chars)>0:
Char = Chars## Make sure to get a character
lock = GetInPlaceLockProp(Char)
for prop in lock:
prop.Data=True
Can't find what you're looking for? Ask the community or share your knowledge.