Write a Material Renamer using Maxscript in 3Ds Max

Write a Material Renamer using Maxscript in 3Ds Max

Tutorial Details
  • Software: Autodesk 3Ds Max
  • Difficulty: Intermediate
  • Completion Time: 30 minutes
  • Ref Files: RefFiles.zip

Final Product What You'll Be Creating

Keeping your scenes organised can be a somewhat tedious task, so any tools that can be used to speed up and simplify the process can be very useful! In this tutorial, Benoit Staumont takes us through how to write a much-needed custom Material Renamer script, using Maxscript in 3Ds Max. The result is an incredibly useful script that you can use easily on any future projects.

Video 1

Download

Note: click the ‘Monitor’ icon to view tutorial in full-screen HD.


Don’t miss more CG tutorials and guides, published daily – subscribe to Cgtuts+ by RSS.

Add Comment

Discussion 5 Comments

  1. Pekkah says:

    WOW, great tutorial! Its easy to understand and the script is really useful!

  2. Moritz says:

    GREAT tutorial!!
    I wanted to know how to write a simple script for starters for a long time.
    Thnak you.

  3. Ant Gray says:

    Is there way to make elements flow; not using absolute positioning? (like in html) Also it it possible to bind that script on a hotkey?

  4. Benoit says:
    Author

    Hi guys and thanks for your nice comments. I’m glad you enjoyed the tutorial.

    @ Ant Gray : I never tried to make floating elements so I can’t answer to your first question but if you find a way to do it, please share it with us.

    You can bind the script on a hotkey easily (and you can even create your own button). To do this, you just have to create a macroscript.

    macroscript MaterialsRenamer
    category: “The category you want”
    tooltip: “The tooltip you want”
    buttontext: “The text you want”
    (
    put all your script here
    )

    Save and evaluate your script. Nothing will happen but a new .mcr file will be created here :
    C:\users\(you)\AppData\Local\Autodesk\3dsMax\(the version you use)\enu\UI\usermacros\

    Then, go to Customize > User Interface > Keyboard

    In the “Category” rollout, choose the new category’s name and then just set a hotkey for your script. That’s it ;)

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.