Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Context not available. | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| if not cls.has_sequencer(context): | |||||
| return False | |||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| return strip.type == 'TEXT' | if not strip: | ||||
| return False | |||||
| return (strip.type == 'TEXT') | |||||
| def draw(self, context): | def draw(self, context): | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| Context not available. | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| if not cls.has_sequencer(context): | |||||
| return False | |||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| return strip.type == 'TEXT' | if not strip: | ||||
| return False | |||||
| return (strip.type == 'TEXT') | |||||
| def draw(self, context): | def draw(self, context): | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| Context not available. | |||||
| layout.prop(scene.render, "film_transparent") | layout.prop(scene.render, "film_transparent") | ||||
| class SEQUENCER_PT_meta(SequencerButtonsPanel, Panel): | |||||
| bl_label = "Meta" | |||||
| bl_category = "Strip" | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| if not cls.has_sequencer(context): | |||||
| return False | |||||
| strip = act_strip(context) | |||||
| if not strip: | |||||
| return False | |||||
| return (strip.type == 'META') | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False | |||||
| strip = act_strip(context) | |||||
| layout.active = not strip.mute | |||||
| layout.operator("sequencer.meta_separate") | |||||
| layout.operator("sequencer.meta_toggle") | |||||
| class SEQUENCER_PT_mask(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_mask(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Mask" | bl_label = "Mask" | ||||
| bl_category = "Strip" | bl_category = "Strip" | ||||
| Context not available. | |||||
| SEQUENCER_PT_active_tool, | SEQUENCER_PT_active_tool, | ||||
| SEQUENCER_PT_strip, | SEQUENCER_PT_strip, | ||||
| SEQUENCER_PT_scene, | |||||
| SEQUENCER_PT_meta, | |||||
| SEQUENCER_PT_mask, | |||||
| SEQUENCER_PT_effect_text_style, | |||||
| SEQUENCER_PT_effect_text_layout, | |||||
| SEQUENCER_PT_effect_text_style_shadow, | |||||
| SEQUENCER_PT_effect, | SEQUENCER_PT_effect, | ||||
| SEQUENCER_PT_adjust, | SEQUENCER_PT_adjust, | ||||
| SEQUENCER_PT_adjust_comp, | SEQUENCER_PT_adjust_comp, | ||||
| Context not available. | |||||
| SEQUENCER_PT_adjust_color, | SEQUENCER_PT_adjust_color, | ||||
| SEQUENCER_PT_adjust_sound, | SEQUENCER_PT_adjust_sound, | ||||
| SEQUENCER_PT_scene, | |||||
| SEQUENCER_PT_mask, | |||||
| SEQUENCER_PT_effect_text_style, | |||||
| SEQUENCER_PT_effect_text_layout, | |||||
| SEQUENCER_PT_effect_text_style_shadow, | |||||
| SEQUENCER_PT_time, | SEQUENCER_PT_time, | ||||
| SEQUENCER_PT_source, | SEQUENCER_PT_source, | ||||
| Context not available. | |||||