Blender Git Commit Log

Git Commits -> Revision 07b3e41

Revision 07b3e41 by Campbell Barton (master)
June 5, 2009, 16:11 (GMT)
Blender file selector support for setting multiple selected files/dirs which operators can use.
This allows the sequencers Add-Image strip to work like it does in 2.4x.

- as well as setting the "filename" operator property, operators can have collections called "files" and "dirs" which are set when available.
- RNA_OperatorFileListElement as new collection type, its a bit redundant since each item only has a "name" property but its needed since we don't have a string array type.
- the file selector now prints operators it runs.

Tested with python, adding a list of images works to the sequencer works.
bpy.ops.SEQUENCER_OT_image_strip_add(name="MyImages", start_frame=54, channel=2, filename="/somedir/", replace_sel=True, files=[{"name":"test1.png"}, {"name":"test2.png"}])

Commit Details:

Full Hash: 07b3e41e18611cc5c7206d1400303104f73054fc
SVN Revision: 20656
Parent Commit: 45ed196
Lines Changed: +72, -16

7 Modified Paths:

/source/blender/editors/space_file/file_ops.c (+30, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_add.c (+18, -14) (Diff)
/source/blender/makesrna/intern/rna_access.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+16, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+6, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021