PDA

View Full Version : Still puzzled about launching MAXscripts with keyboard shortcuts


CarlCampbell
08-15-2007, 02:19 PM
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!

erilaz
08-15-2007, 02:39 PM
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.

Bobo
08-15-2007, 02:53 PM
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

mustan9
08-15-2007, 03:04 PM
...thing, evaluated it and it shows my script in the CustomizeUI no problem... but where is the .mcr file?

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.

CGTalk Moderation
08-15-2007, 03:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.