[Bf-committers] Sequencer py api

Campbell Barton cbarton at metavr.com
Wed Dec 27 04:02:40 CET 2006


almost finished a Python Sequence module for accessing a scene sequencer 
data- nested, metastrips as an iterator, strip data (images, sound, 
scene and referenced ipo)

Its mostly read only at the moment, but you can move clips around and 
change their flags.

Just wondering if a Python API is acceptable at the moment, any reasons 
not to include it?
Maybe we could just add in the documentation that the API may change in 
the next release.


quick example usage


from Blender import Scene
scn = Scene.GetCurrent()

print scn.metastrip # the current metastrip we are editing

for seq in scn.sequence:
	print seq.name
	print seq.length, seq.start, seq.end
	seq.channel += 1 # mvoe to the next channel
	seq.start += 10 # move it 10 frames forward

	
	



More information about the Bf-committers mailing list