Tasks/PrintClipNamesAndStartStopFrames.py

Tasks/PrintClipNamesAndStartStopFrames.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: FBStory, FBStoryTrack, FBStoryClip
7 #
8 
9 from pyfbsdk import FBStory
10 
11 lStory = FBStory()
12 
13 for lTrack in lStory.RootFolder.Tracks:
14 
15  print 'Track: ', lTrack.Name
16 
17  for lClip in lTrack.Clips:
18 
19  print ' Clip: ', lClip.Name, '[', lClip.Start.GetFrame(), ',', lClip.Stop.GetFrame(), ']'
20 
21  # Cleanup.
22  del( lClip )
23 
24  # Cleanup.
25  del( lTrack )
26 
27 # Cleanup of local symbols.
28 del( lStory )
29 
30 # Cleanup of external symbols.
31 del( FBStory )
32