View Single Post
# 6 22-06-2014 , 03:31 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Click on the assigned key in the "current hotkeys" box, selecting it will enable the remove button.

I would just go ahead and hit the new button and create hotkeys from scratch using this code. The example below switches the camera view to the right side.

Code:
// To act on it, we need to know what panel is currently active
string $panel = `getPanel -withFocus`;

// Try to change the bookmark ONLY if the active panel is a modeling view
if(`getPanel -typeOf $panel` == "modelPanel"){
	
	// you can change "-rightSide" flag to any of the appropriate bookmark flags
	// for the other hotkeys
	viewSet -rightSide `modelEditor -q -camera $panel`;
	
	
}
For the front/leftSide/back etc flags check the command page https://download.autodesk.com/global/...s/viewSet.html


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::