ViewSwitcher
MarkingMenu for Camera Switching
Install / Use
/learn @RedForty/ViewSwitcherREADME
About
ViewSwitcher is a quick little markingmenu that solves two problems:
- One-button menu for camera switching (including a custom shotCam)
- One button press to hotswitch back to the previous camera
Each viewport will remember it's last active camera and allow you to hotswitch between the two.
Huge shoutout to Vasil Shotarov for writing up these awesome articles to help get me through.
- http://bindpose.com/custom-marking-menu-maya-python
- http://bindpose.com/custom-marking-menus-maya-editors
- http://bindpose.com/custom-hotkey-marking-menu-maya/
Install
Download and put the viewSwitcher.py file in your <MY_DOCUMENTS>/maya/scripts/ folder.
Setup
You'll need to make two hotkey commands. One for the press and one for release.
Open the maya hotkey editor and open the Runtime Command Editor.
Hit 'New' and give it a name like:
<b>viewSwitcher_PRESS</b>
Paste this code into the command area:
import viewSwitcher
viewSwitcher.press()
Make sure to switch the language to <b>python</b>.
When ready, hit Save.
Hit 'New' again and this time name it:
<b>viewSwitcher_RELEASE</b>
viewSwitcher.release()
When ready, hit Save. Now assign your hotkeys.
Make sure to set the release key to the same as the press key but using the dropdown menu to set it to 'release' mode.

Usage
Hold the hotkey you assigned and left click (and hold) in any viewport - standard markingMenu summoning procedure.
Letting go on any box will change the current panel to look through that camera.
If you quickly tap the hotkey, it will switch to the previous camera you were looking through (in the current viewPane).
By default, the 'shotCam' will be the 'persp' camera. As soon as you choose the optionBox next to shotCam, the current viewport camera will be assigned as the shotCam.

Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
