[Closed] Assign Script to Hotkey
I’ll preface by saying I’m not a scripter, I’m an artist. I found a script from James Haywood that toggles your environment tint color from white to black, and if you run it again back to white. It serves as a silhouette toggle for when you’re modeling. He has a whole script package, but I just want to use that one script (it’s its own *.ms file), and assign it to a hotkey so I can quickly toggle “silouhette mode” on and off while I’m modeling. The script doesn’t have a UI or anything, you just have to manually run it every time.
I know there isn’t a way to get a hotkey to fetch a specific script file and run it, so I guess I’m looking for a way to have the script sort of poised in Max and ready to run any time I hit the assigned hotkey. Any ideas?
You need to wrap the code in a macroScript header, save it as an .mcr and load it from the macroScripts folder. At that time you can assign hot keys or add it to a menu or button bar.