[Closed] Still puzzled about launching MAXscripts with keyboard shortcuts
I’ve been searching the forums and reading some of Bobo’s advice on launching a script with a keyboard shortcut but I think I still can’t get it right…
I’ve done the whole…
MacroScript TheScriptName category:“Your Category”
(
–enter the script code here.
)
…thing, evaluated it and it shows my script in the CustomizeUI no problem… but where is the .mcr file? I’ve done a search for it but it doesn’t show up! I’d use the drag-and-drop method but I want to be able to take this file with me to use on other machines, so I can just stick it in /UI/Macroscripts, load my .cui file and it’s keyboard shortcuts properly link to the corresponding macros.
Can anyone help?
Cheers!
In Max 9 and higher, the .MCR goes by default into \usermacros in your local settings path unless specified otherwise. This was made for Vista (buhhhh!die!die!) compatibility:
C:\Documents and Settings\yourusername\Local Settings\Application Data\Autodesk\3dsmax\9 – 32bit\enu\UI\usermacros
If you have it assigned to a toolbar, just “edit macro” from the right click menu. Then select “file / save as…” to see where it is saved.
As bobo said, it depends on your version of Max.
You have to save the maxscript as an .mcr file, then place it in the macroscripts directory under UI.
Just evaluating the script only creates a temporary macroscript instance in memory.