Samples/Story/ImageSequenceFrameRateChange.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 demonstrates the ability to change the FrameRate of an image sequence.
# 
# Topic: FBVideoClipImage FBTimeMode
#
from pyfbsdk import FBVideoClipImage, FBTimeMode, FBVideoClip, FBSystem
import os.path

# Set to where the image sequence located before run it.
lFileName = os.path.join(FBSystem().ConfigPath, 'Scripts/Samples/Story/sample_image_sequence0000.jpg')
lFileName = os.path.normpath(lFileName)

lImageSquence = FBVideoClipImage('ImageSquence')
lImageSquence.Filename = lFileName

# Set as an image sequence. 
lImageSquence.ImageSequence = True
# Set do not use system FrameRate, so we are able to set the FrameRate.
lImageSquence.UseSystemFrameRate = False


# Set the FrameRate through the TimeMode property.
lImageSquence.TimeMode = FBTimeMode.kFBTimeMode30Frames

# Set the FrameRate through the FrameRate property.
lImageSquence.FrameRate = 50