Scripting

Smart workarounds with coding

Moneta

Useage

Moneta vid 1 : Moneta Explanatory Video

StateSetools - Stateset Importer Exporter

Usage

State Sets import export script was commissioned by Malaysia-based company Comfort Works. Its intention is to export and import material state data from one 3ds max scene to another. It lets the user select which state sets need to be exported and imported.

Statesetools vid 1 : Stateset tools in action

Custom maxscript installer

Usage

This is a complete maxscript installer I wrote to make it easy to distribute custom-made max scripts and macro scripts among clients and the community. It not only gives the ability to install and uninstall scripts but also dependencies such as icons. It can be bundled up as a maxscript zip and the end user just have to drag and drop it onto the 3dsMax window to run the installer. It has an output window that outputs installation progress in color-coded text for each type of event. (successful event, error event, warning, etc.)

Most of the maxscripts or macroscripts needs to be removed manually when installed. This needs good knowledge on 3ds max file paths. My maxscript installer fixes this by providing a clean uninstall option that removes the script and all dependencies. Installer can be customized with a small product image of author's choice. It also can install and register icons for the specific maxscript without needing to restart the application.

You can read more about this maxscript installer in my blog posts Art of creating custom installers for your maxscripts Part 1 and Art of creating custom installers for your maxscripts Part 2. Here I discuss the methods and techniques I used to create this custom installer in detail.

Populate 'Dress up'

Usage

While 3ds Max's inbuild 'populate' crowd feature is useful and solid, it's texture customization features are very limited. This tool enables us to randomize populate character clothing fabrics with any number of fabric textures. User just have to download preferred set of fabric textures that suits their purpose and copy those image files to a new folder named 'patterns' inside 'sceneassets\images' folder of the active project's project folder. User then just can select their intended character(s) and press "Randomize Cloths" to assign a random fabric texture from the pool of textures copied to new 'patterns' folder. Else, "Pick custom pattern" button lets the user to select a specific fabric texture for selected character cloths. All these actions are undoable through "Undo Selected" button.

Dress Up vid 1 : 'Dress Up' for populate in action

Max Override tiny maxscript tools

Usage

Max Override is the first set of a series of tiny scripts that I coded throughout past few years to make my life easier inside 3ds Max. Thought of bundling them up time-to-time and give away freely. Most of these scripts will make mundane tasks inside 3ds Max easy for you. If you have any ideas for more scripts, please send them to me and I will code and try to include them in future sets to come.

Download Max Override

- Freeze selected in color

Freezes the selected object(s) in color, with a click of the button; which otherwise needs you to go to object properties > untick "show frozen in gray" and then freeze the object(s).

- Enable/ Disable filename label on viewports

 - Suggested by Danesh Kuruppu

Clicking this button will simply enable a label on your viewport; displaying the name of the file you are currently working on. This will be useful when you are working on a project where you will have to deal with lots of viewport grabs and animation previews. Enabling the viewport filename label and making the viewport grab or animation preview will include the name of the file that the viewport grab or preview animation came from, making your life easier around dozens of viewport grabs and preview animations.

- Delete all the cameras on the scene

Simply delete all the cameras on the current scene with a single click.

- Lock/Unlock all the transformations

By selecting an object or set of objects and clicking the toolbar button, you can Lock the transformations of that object(s); otherwise, you will have to go to the object hierarchy panel and enable/disable many ticks.

Later, click the button and 'pick' the object to Unlock all the transformations of an object that has its transformations locked.

- Bake transformation(s) and rotation(s) of selected object(s) to dummies

Clicking this button will create dummies for each object you selected on the viewport and bake the transformation and rotation of that objects into those dummies.

In other words, it will create dummies for every object you selected, with the same animation as the objects. Useful in many ways. Press 'Esc' to end the baking process.

- Delete all the lights on the scene

Simply deletes all the lights on the current scene with a single click.

- Enable/ Disable auto backup

Clicking this will simply enable or disable auto backup. this will be very useful when you are working on a big project, that max will take a long time to save autobackups. and sometimes when in the middle of tasks like grooming hair and fur inside 3dsmax and max attempts to make an autosave, it will either give unpredictable results on the task you are doing or result in an application crash. This script will be perfect for that kind of situation, where you can simply click a button and enable or disable autobackup. Plus, it helps you by simply showing a viewport label saying 'ab: off' if autobackup is disabled via the script. so there is no chance of you forgetting to turn autobackup on when it is needed.

- Enable/ Disable viewport hair display

Select object(s) with hair and fur modifier applied, and click the button to hide or show hair strands on the viewport in a single click; which otherwise will make you select each object and go to modify panel and select hair and fur modifier and set the 'display hairs' tick on or off. Plus, clicking the button without any object selected, will Enable/ Disable the viewport hair display of all the objects with hair and fur on the scene.