|
Hello,
I am having problems with using the enumeration class: FBAnimationAction. I import the class and it’s clearly recognised since I get no errors with the import. However, when I come to use it in the following bit of code :
oManager.Actors = FBElementAction.kFBElementActionDiscard
oManager.ActorFaces = FBElementAction.kFBElementActionDiscard
oManager.ActorFacesAnimation = FBAnimationAction.kFBAnimationActionConsider
oManager.Audio = FBElementAction.kFBElementActionDiscard
I get this error:
“oManager.ActorFacesAnimation = FBAnimationAction.kFBAnimationActionConsider
UnboundLocalError: local variable ‘FBAnimationAction’ referenced before assignment”
It seems to think that FBAnimationAction is a local variable even though it seems to have been imported successfully. Anyone seen this sort of error before? Thanks.
|
|
|
|
Hi,
Witch Version on Mobu are you using, I tried with Mobu2009.b(05.02.2009) and no issue…
from pyfbsdk import *
oManager = FBFbxManager() oManager.Actors = FBElementAction.kFBElementActionDiscard
oManager.ActorFaces = FBElementAction.kFBElementActionDiscard
oManager.ActorFacesAnimation = FBAnimationAction.kFBAnimationActionConsider
oManager.Audio = FBElementAction.kFBElementActionDiscard
CHARLES PAULIN | SQA AUTOMATION ANALYST
AUTODESK Media & Entertainment
|
|
|
|
I’m using 7.5, ext 2. Maybe a bug that was fixed in a later version?
|
|
|
|
I’ve found out what the problem is now. Thanks for the help.
|
|
|