Python Reference Guide
 
Loading...
Searching...
No Matches
Tasks\CurrentCharacterGoToStancePose.py
1# Copyright 2009 Autodesk, Inc. All rights reserved.
2# Use of this software is subject to the terms of the Autodesk license agreement
3# provided at the time of installation or download, or which otherwise accompanies
4# this software in either electronic or hard copy form.
5#
6# Topic: FBApplication.CurrentCharacter, FBCharacter.GotoStancePose
7#
8
9from pyfbsdk import FBApplication, FBCharacter, FBMessageBox, FBSystem
10
11# Set the current character in stance pose, adding an undo transaction
12# and including character extensions.
13CurrentChar = FBApplication().CurrentCharacter
14if CurrentChar!=None:
15 CurrentChar.GoToStancePose( True, True );
16else:
17 FBMessageBox("Character","There is no current Character in the scene", "Ok")
18
19# Cleanup everything.
20del( FBApplication )
FBApplication is used mainly to manage files.
Definition: pyfbsdk_generated.h:801
int FBMessageBox(str pBoxTitle, str pMessage, str pButton1Str, str pButton2Str=None, str pButton3Str=None, int pDefaultButton=0, int pScrolledMessage=0)
Dialog popup box.