Hi all, i'm using this script to place VrayProxies (shown underneath). By pushing the Place button, the selected proxy will follow the cursor in order to place it anywhere in the scene. I like to add a two hotkeys to be able to rotate the proxy while it still follows my cursor. So i'm looking for a way that allows me to assign the left and right arrow key as hotkeys to rotate the proxy 5 degrees left and right on the z-axis. Is this possible? Thank you.
I understand i can assign them manually ofc but i like to do it with maxscript so the rest of the office can use it too and they don't have to set up those hotkeys manually themselves :)
button btn_place "" height:29 width:29 iconName:@"W:\Algemeen\Werknemers\Remy\Icons\Workflow toolbar\Aankleding - place.jpg" iconSize:[29,29] tooltip:"Place your selected object" offset:[0,-5] across:4
tool selectionMover numPoints:1
(
local lastoffset
local prevCenter = selection.center
on freeMove do
(
if lastoffset != undefined do selection.center -= lastoffset
offset = (gridPoint - prevCenter) * [1,1,0] + [ 0, 0, 0 ]
selection.center += offset
lastoffset = offset
)
)
on btn_place pressed do
(
if selection.count != 0 do startTool selectionMover
)