diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-10 19:10:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-10 19:10:51 +0400 |
commit | efde4dbba868c3717e21fe87a8c28314129e8fb4 (patch) | |
tree | f58152eb37d5675c1171ee13c445186f294fe81a /source/blender/makesrna/intern/rna_scene.c | |
parent | f91fa9d2ce57ee6488b86260b9617db7fca3cb33 (diff) |
patch [#30871] VSE py-api
from Dan Eicher (dna)
--- message from the tracker
Classes for all effect types with proper input attributes
Added new/delete functions for SequenceEditor.sequences.
push/pop functions for ImageSequence.elements to add/remove images
Moved waveform from the base class to SoundSequence (probably should be renamed use_waveform or show_waveform)
Fixed user count for scene and movie clip types
--- my own comments
- dont have blending mode argument from sequencer.new_*() functions. Better edit this after.
- dont change waveform attribute, seems unrelated change and should be kept for sound afaik.
- dont apply scene, clip usercount changes - Sergey dealt with these separately.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 2cb89ec25e9..787b8ea9d22 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -625,6 +625,14 @@ static void rna_Scene_all_keyingsets_next(CollectionPropertyIterator *iter) iter->valid = (internal->link != NULL); } +static PointerRNA rna_Scene_sequence_editor_get(PointerRNA *ptr) +{ + Scene *scene = (Scene *)ptr->data; + /* mallocs an Editing (if it doesn't exist) so you can access + * Scene.sequence_editor functions without having to manually + * add a Sequence using the UI to create the SequenceEditor */ + return rna_pointer_inherit_refine(ptr, &RNA_SequenceEditor, seq_give_editing(scene, TRUE)); +} static char *rna_RenderSettings_path(PointerRNA *UNUSED(ptr)) { @@ -4307,6 +4315,7 @@ void RNA_def_scene(BlenderRNA *brna) /* Sequencer */ prop = RNA_def_property(srna, "sequence_editor", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "ed"); + RNA_def_property_pointer_funcs(prop, "rna_Scene_sequence_editor_get", NULL, NULL, NULL); RNA_def_property_struct_type(prop, "SequenceEditor"); RNA_def_property_ui_text(prop, "Sequence Editor", ""); |