Hello do you know if its possible to switch between all the different display mode with only one shortcut like it exist with the viewports ?
thank you so much !
julien
This Python code enables you to switch between display modes in a forward cycling manner.
import rhinoscriptsyntax as rs
modes = rs.ViewDisplayModes()
current_mode = modes.index(rs.ViewDisplayMode())
next_mode = (current_mode + 1) % len(modes)
rs.ViewDisplayMode(mode=modes[next_mode])
You can save it in the script folder %AppData%\McNeel\Rhinoceros\7.0\scripts
and use this macro with a key combination to run the code:
_NoEcho !_-RunPythonScript nextMode.py
nextMode.py (199 Bytes)
3 Likes
Oh thanks so much it’s working so well and do you know if its possible to switch only between two or three we select ? would be even better !
1 Like
Hi Julien- you can try these,
SetCycleModes.py (2.4 KB)
CycleDisplayModes.py (1.6 KB)
To use the Python script use RunPythonScript
, or a macro:
_-RunPythonScript "Full path to py file inside double-quotes"
-Pascal
2 Likes
thanks its perfect script love it