Hi there,
I've been struggling with the same problem myself. A lucky search in the source code put me on the right track, and I finally found that you need to pass arguments differently for image sequences compared with audio/movie files. This seems to be the correct way to import stuff into the sequencer:
Code: Select all
import Blender
from Blender import *
def main():
sce = Scene.GetCurrent()
seq = sce.sequence
if not seq:
print 'This scene has no sequence data yet'
return
start = 10
track = 1
# For importing an AVI
seq_data = ( "example.avi", "/path/to/avi/", "/path/to/avi/example.avi", "movie" )
#Alternatively, comment the above and use this for an image sequence
#seq_data = ( "/path/to/images/", ("001.jpg", "002.jpg", "003.jpg") )
#Or, use this for audio:
seq_data = ( "example.wav", "/path/to/audio/", "/path/to/audio/example.wav", "audio_hd" )
strip = seq.new(seq_data, start, track)
#Wow. From here, we can access all of the following in the strip object:
#'blendMode', 'channel', 'copy', 'endOffset', 'endStill', 'filtery', 'flipX', 'flipY', 'floatBuffer', 'images', 'ipo',
#'ipoLocked', 'length', 'lock', 'mute', 'name', 'new', 'next', 'premul', 'proxyDir', 'rebuildProxy', 'remove', 'reversed',
#'scene', 'sel', 'selLeft', 'selRight', 'sound', 'start', 'startOffset', 'startStill', 'type', 'useProxy'
main()
Hope this helps!
Karl