Add custom properties to sequence strips

This commit is contained in:
Campbell Barton
2015-04-02 21:05:12 +11:00
parent ac2530be8c
commit 2fc69d11c8
6 changed files with 41 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from rna_prop_ui import PropertyPanel
from bl_ui.properties_grease_pencil_common import GreasePencilDataPanel, GreasePencilToolsPanel
from bpy.app.translations import pgettext_iface as iface_
@@ -1107,5 +1108,11 @@ class SEQUENCER_PT_grease_pencil_tools(GreasePencilToolsPanel, SequencerButtonsP
# toolbar, which doesn't exist here...
class SEQUENCER_PT_custom_props(SequencerButtonsPanel, PropertyPanel, Panel):
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
_context_path = "scene.sequence_editor.active_strip"
_property_type = (bpy.types.Sequence,)
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)