Page MenuHome

Add Toogle Views to Sequencer
AbandonedPublic

Authored by Peter Fog (tintwotin) on Sun, Aug 11, 11:04 PM.

Details

Summary

Going through the 'Operator Cheat Sheet' I came across 1 sequencer operator which wasn't exposed in Blender:

Added to View:
bpy.ops.sequencer.view_toggle()
Toggle between sequencer views (sequence, preview, both)
NB. Shortcut key is missing in Preview.

Diff Detail

Event Timeline

Peter Fog (tintwotin) retitled this revision from Add unexposed operators to Video Editor: Box Select Handles, Sample Color and Toogle Views. to Add unexposed operators to Video Editor: Sample Color and Toogle Views. .Sun, Aug 11, 11:30 PM
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)
Peter Fog (tintwotin) updated this revision to Diff 17031.

Updated.

Changed the operator_context to get Sample Color hotkey to show, however Toggle View only shows hotkey in Sequencer and Sequencer+Preview. I don't know if there is an operator_context which covers all 3 states?

Peter Fog (tintwotin) edited the summary of this revision. (Show Details)Sun, Aug 11, 11:56 PM
Brecht Van Lommel (brecht) requested changes to this revision.Mon, Aug 12, 12:28 AM

Don't add sequencer.sample to the menu, it's like adding mouse select to the 3D viewport menus, we don't do this.

This revision now requires changes to proceed.Mon, Aug 12, 12:28 AM
Peter Fog (tintwotin) retitled this revision from Add unexposed operators to Video Editor: Sample Color and Toogle Views. to Add Toogle Views to Sequencer .Mon, Aug 12, 7:11 AM
Peter Fog (tintwotin) edited the summary of this revision. (Show Details)
Peter Fog (tintwotin) updated this revision to Diff 17033.

Removed Sample Color.