ScriptSpot

Script

Macroscript Creator

By Swordslayer · 2013-02-03

Version
0.01a
Version requirement
3ds Max 9, VIZ 2008
Other software required
for Max 9/VIZ 2008 AVGuard extension is needed
Date updated
2013-02-03
Votes
19
Description

Most MAXScripts are available in .ms format and if there is a .mcr file included, it often requires rigid path structure to work. This little script creates macroscripts to run .ms or .mse files, the files themselves can be placed basically anywhere and you can define how they show in the interface.

Macroscript Creator UI

Installation: The .ms file can be run from any location (Maxscript -> Run Script...). If you want to put it in toolbar, menu or quadmenu,

Additional Info

  • The Category text associates the script with a corresponding category in the Customize User Interface dialog or creates it if it does not exist yet.
  • Script ID is a unique identifier of the macroscript, to find out more about the naming conventions refer to Names section of the MAXScript Reference.
  • Button text is the text that displays when the macroscript is placed as a button on a toolbar and no icon is assigned to it.
  • Tooltip shows when mouse cursor hovers over the button and is also displayed in the Customize User Interface dialog and in quad menu.

Pressing the EXECUTE button executes the resulting macroscript definition, which means that the script is now available and ready to be assigned to a shortcut, quadmenu or pinned to a toolbar. Using the Edit... button instead allows you to edit the definition yourself and skips all the automated checks. If you want to execute the resulting script, press CTRL + E in the edit window or choose File > Evaluate All from the menu.

To learn more about macroscripts, be sure to visit Defining Macroscripts.

 

Attachments

Tags: macroscript, customize

Comments (9)

Ripio Suelto · 2020-09-11

very useful tool, thanks, and please add a label to assign icon like this

Attachments

Recognising userScript-path

Haider of Sweden · 2020-01-29

How can I swap out the part from the path that is equal to getdir #userScripts?

For example if ebxPath is c:\3dsmax\scripts\utilities\anim\script.ms
and my userScripts is c:\3dsmax\scripts

this is my test


fullpath="c:\3dsmax\scripts\utilities\anim\script.ms"
usPath = getdir #userScripts
ebxPath = (substituteString fullpath usPath "$userScripts")
substituteString ebxPath "\\" "\\\\"

But I have no clue how to merge it with the script.

I would like the macroscript to be created with a path like this:


on execute do fileIn "$userScripts\\utilities\\anim\\script.ms"

Great :)

todor · 2019-09-28

Very cool script :) Thank you :)

Works with Max 2017

Marsman · 2019-09-28

Thank you very much!

Not working in 2018 anymore!

LAOMUSIC ARTS · 2019-08-21

Hi !

I just gave this script a try in Max 2018.4 and it did not works.
May you please double-check, if you can ?
This is a VERY necessary tool !

Thanks for any help!

Swordslayer · 2019-08-21

It works without issues. Make sure you read the instructions.

works with 2018.4 ;)

Fixtion · 2020-01-10

thx ;)

:)

Mirk217 · 2016-05-29

thank you for this script!

3D_Animator · 2014-05-18

Excellent Script!
Thanks for share! =)