BasicOperations/NamespaceOperationsOnTrack.py

BasicOperations/NamespaceOperationsOnTrack.py
1 # Copyright 2011 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 # This script demonstrate the namespace operations on story track, add a namespace to
7 # to a track, change the namespace of a track, remove track from the namespace.
8 #
9 # Topic: FBStoryTrack FBNamespace
10 #
11 from pyfbsdk import FBStoryTrack, FBStoryTrackType, FBNamespace
12 
13 # Instance a audio track
14 lAudioTrack = FBStoryTrack(FBStoryTrackType.kFBStoryTrackAudio, None)
15 
16 # Change it's name, so track added to the "First Namespace" namespace
17 lAudioTrack.LongName = "First Namespace:" + lAudioTrack.Name
18 
19 # Change it's name, so the track namespace is changed to "Second Namespace"
20 #lAudioTrack.LongName = "Second Namespace:" + lAudioTrack.Name
21 
22 # Change it's name, so the track namespace is removed
23 #lAudioTrack.LongName = lAudioTrack.Name
24 
25 # Cleanup
26 del( FBStoryTrack, FBNamespace, FBStoryTrackType)