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.
WOW, great tutorial! Its easy to understand and the script is really useful!
GREAT tutorial!!
I wanted to know how to write a simple script for starters for a long time.
Thnak you.
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?
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 ;)
thanks for your tip!