Tasks/CurrentCharacterGoToStancePose.py
Main Page
Groups
Classes
Examples
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
9
from
pyfbsdk
import
FBApplication, FBCharacter, FBMessageBox, FBSystem
10
11
# Set the current character in stance pose, adding an undo transaction
12
# and including character extensions.
13
CurrentChar =
FBApplication
().CurrentCharacter
14
if
CurrentChar!=
None
:
15
CurrentChar.GoToStancePose(
True
,
True
);
16
else
:
17
FBMessageBox
(
"Character"
,
"There is no current Character in the scene"
,
"Ok"
)
18
19
# Cleanup everything.
20
del( FBApplication )