So there're a lot of scripts that allow change/switch display mode of Vrayproxy, but all of them are written for UI interaction.
I've some code, how can I modify to allow assign hotkey to each display mode of this task, thanks.
global vmesh_roll
try ( destroydialog vmesh_rol ) catch()
rollout vmesh_roll " Vray Proxy Displays" --- by Budi G ( Oct 2010 )
( -- dialog
group " Display :"
(
radiobuttons display_btn "" labels:#("bounding box", "preview from file", "point", "faces", "whole mesh") default:0 columns:1
)
fn display_type sel type = ( for i in sel do if classof i == VRayProxy then ( i.display = type ) else () )
on display_btn changed thestate do (
case thestate of
(
1: display_type selection 0
2: display_type selection 1
3: display_type selection 2
4: ( display_type selection 1 ; display_type selection 3 ) -- mesh
5: display_type selection 4
)
)--end on pressed
) -- dialog
createdialog vmesh_roll width:135 height:110 style:#(#style_sysmenu, #style_toolwindow)
By nnq2603 · 2019-11-21
miauu · 2019-12-02