BasicOperations/NamespaceOperationsOnTrack.py
 
 
 
BasicOperations/NamespaceOperationsOnTrack.py
# Copyright 2011 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.
# 
# This script demonstrate the namespace operations on story track, add a namespace to
# to a track, change the namespace of a track, remove track from the namespace.
# 
# Topic: FBStoryTrack FBNamespace
#
from pyfbsdk import FBStoryTrack, FBStoryTrackType, FBNamespace

# Instance a audio track
lAudioTrack = FBStoryTrack(FBStoryTrackType.kFBStoryTrackAudio, None)

# Change it's name, so track added to the "First Namespace" namespace
lAudioTrack.LongName = "First Namespace:" + lAudioTrack.Name

# Change it's name, so the track namespace is changed to "Second Namespace"
#lAudioTrack.LongName = "Second Namespace:" + lAudioTrack.Name

# Change it's name, so the track namespace is removed
#lAudioTrack.LongName = lAudioTrack.Name

# Cleanup
del( FBStoryTrack, FBNamespace, FBStoryTrackType)