PokeChop
03-18-2005, 03:07 PM
Bobo wrote this script so I could assign my spacebar to cycle through the viewports. I have been using it for awhile now and really like it. Thought I would include it in the scripts section for everyone, if you would like to try it also. You can also change the "viewNames = #" line to cycle other views too, like right or bottom. So the spacebar cycles the:
P = Perspective
L = Left
T = Top
B = Back
macroScript CycleView category:"Forum Help"
(
viewNames = #(#view_persp_user, #view_left, #view_top, #view_back)
theType = findItem viewNames (viewport.getType())
theType += 1
if theType > viewNames.count do theType = 1
viewport.setType viewNames[theType]
)
*Copy.
*Paste into a new Script Editor.
*Evaluate (Ctrl+E)
*Assign whatever shortcut you want to CycleView in the "Forum Help" category.
*Press the shortcut to cycle the current view.
P = Perspective
L = Left
T = Top
B = Back
macroScript CycleView category:"Forum Help"
(
viewNames = #(#view_persp_user, #view_left, #view_top, #view_back)
theType = findItem viewNames (viewport.getType())
theType += 1
if theType > viewNames.count do theType = 1
viewport.setType viewNames[theType]
)
*Copy.
*Paste into a new Script Editor.
*Evaluate (Ctrl+E)
*Assign whatever shortcut you want to CycleView in the "Forum Help" category.
*Press the shortcut to cycle the current view.
