Mar 12, 2012

3dsmax .mse script file to button

-- there is my template for seach cases:

macroScript macro_ToDo
category:"Tools"
internalCategory:"Tools"
tooltip:"To Do..."
buttontext:"To Do..."
(
local sFile = (GetDir #scripts) + "/myScript.mse"
if (doesFileExist sFile) then (fileIn sFile)
else (messageBox "Unable to locate the script.")
)


  1. Put your .mse file on your Scripts directory.

  2. Open the MAXScript Editor and paste the example code

  3. Name your tooltip and buttontext variables

  4. Tools > Evaluate all

  5. Go to the customize user interface menu

  6. Create a new toolbar

  7. Select ‘Tools’ in the Category dropdown menu

  8. Look for the name you gave for the tool

  9. Drag and drop it to your freshly created toolbar

  10. Save the toolbar

SOURCE

5 comments:

Unknown said...

-- Syntax error: at ), expected
-- In line: ) I get error above...




Jan Ruzic said...

Thanks!

Jez3D said...

Works great, thanks a lot :)

Unknown said...

U seer is fucking awesome, look for this solution for about couple of hours

christophe said...

thanks, you can use a category name like "_my_scripts", so you will find it at the top of the category list :)