Python Reference Guide
 
Loading...
Searching...
No Matches
BasicOperations\InsertCurrentTake.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# Script description:
7# Create character track for the current character and insert current take in it.
8#
9# Topic: FBStory, FBScene
10#
11
12from pyfbsdk import *
13
14app = FBApplication()
15system = FBSystem()
16story = FBStory()
17scene = system.Scene
18
19# create a track for our character:
20track = FBStoryTrack(FBStoryTrackType.kFBStoryTrackCharacter, story.RootFolder)
21
22# assign our CurrentCharacter to the track
23track.Details.append(app.CurrentCharacter)
24
25# Insert current take in the newly created track
26clip = track.CopyTakeIntoTrack( system.CurrentTake.LocalTimeSpan, system.CurrentTake )
FBApplication is used mainly to manage files.
Definition: pyfbsdk_generated.h:801
Story Management class.
Definition: pyfbsdk_generated.h:17689
Story Track class.
Definition: pyfbsdk_generated.h:18315
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18771