# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Topic: FBApplication.CurrentCharacter, FBCharacter.GotoStancePose # from pyfbsdk import FBApplication, FBCharacter, FBMessageBox, FBSystem # Set the current character in stance pose, adding an undo transaction # and including character extensions. CurrentChar = FBApplication().CurrentCharacter if CurrentChar!=None: CurrentChar.GoToStancePose( True, True ); else: FBMessageBox("Character","There is no current Character in the scene", "Ok") # Cleanup everything. del( FBApplication )