Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 1,548 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| length_list = length_list + ( | length_list = length_list + ( | ||||
| str(strip.animation_offset_start), | str(strip.animation_offset_start), | ||||
| str(strip.animation_offset_end), | str(strip.animation_offset_end), | ||||
| ) | ) | ||||
| max_length = max(len(x) for x in length_list) | max_length = max(len(x) for x in length_list) | ||||
| max_factor = (1.9 - max_length) / 30 | max_factor = (1.9 - max_length) / 30 | ||||
| split = layout.split(factor=0.5 + max_factor) | |||||
| split.label(text="Playback Rate") | |||||
| split.prop(strip, "playback_rate", text="") | |||||
| layout.enabled = not strip.lock | layout.enabled = not strip.lock | ||||
| layout.active = not strip.mute | layout.active = not strip.mute | ||||
| sub = layout.row(align=True) | sub = layout.row(align=True) | ||||
| split = sub.split(factor=0.5 + max_factor) | split = sub.split(factor=0.5 + max_factor) | ||||
| split.alignment = 'RIGHT' | split.alignment = 'RIGHT' | ||||
| split.label(text="Channel") | split.label(text="Channel") | ||||
| split.prop(strip, "channel", text="") | split.prop(strip, "channel", text="") | ||||
| ▲ Show 20 Lines • Show All 771 Lines • Show Last 20 Lines | |||||