rdg::maxScripts

This is a collection of maxScripts

rdg::toggleSoundMute

rdg::multiSubTools

This tool generates a MultiSubMaterial with a random colored standard material for every materialID of the selected object.

multisubtools gui

Select a object and press ‘generate material’ to generate the MultiSubMaterial.
’shuffle colors’ reassigns new random colors to the MultiSubMaterial of the selected object.

You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface …

Tested in: Autodesk 3DS MAX 8 SP3
Download: rdg::multiSubTools

rdg::envColorHelper

This Macroscript generates a box in your scene that gives you visual feedback for the environment color.

After executing the script you will find the Helper in the ‘rdg::preset’ category of Customize -> Customize User Interface. Assign it to a toolbar or menue …

Download it here: rdg::envColorHelper

rdg::dashed [2]

This tool generates dashed lines out of arbitrary splines.

dashed gui

Select a spline and press ‘generate’.
If the Spline is consisting of mupltiple sub-splines, a dashed line for every spline is generated.
The length field displays the length of the first spline.
Rotation changes the alignment to the path from 0 to 90 degrees.
CAUTION: ‘Segements’ will slice your dashes to fit the spline curvature. Small values can generate complex geometry!

Normalise your spline with the ‘Normalize Spline’ modifier to get best results.

dashed gui

You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface …

Tested in: Autodesk 3DS MAX 8 SP3
Download: rdg::dashed[2]

toggle modifiers

macroScript rdg_toggle_modifiers
	category:"rdg:preset"
	toolTip:"toggle modifiers enabled"
	(
	try(
		for obj in selection as array do (
			if obj.modifiers.count > 0 then (
				for mod in obj.modifiers do (
					mod.enabled = not mod.enabled
				)
			)
		)
	)catch()
	
)

random string custom attribute

maxscript
creates a box, adds a custom attribute and “random string” generator to it.

(
	myBox = box()
	select myBox

	-- add custom attribute name
	myCustomAttribute = attributes myCustAttr (
		parameters main rollout:params (
			theName type:#string ui:name_ui default:"rdg"
		)
		rollout params "the random string" (
			edittext name_ui "theString"
		)
	)

	CustAttributes.add myBox myCustomAttribute

	-- add script controller
	theScript = "me = $"+myBox.name+"\n"
	theScript += "seed T \n"
	theScript += "dependsOn me \n"
	theScript += "me.theName = \"foo-\" + (random 0 1000) as string \n"
	theScript += "[1,1,1] \n"

	myBox.scale.controller = scale_script()
	myBox.scale.controller.script = theScript

) 

rdg::quickRenameSelected

This macroscript lets rename the selected object without switching to Modify-Panel. Handy, if you have to rename a lot of objects without a common name-structure or don’t want a overloaded interface.

rename selected gui

To use it, go to Maxscript / Run Script and pick this file. You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface … and you’ll be able to assign the script to a quadmenu, shortcut key, etc.
Look for the script titled ‘quickrename selected object’.
Assign a shortcut and voila, you’re done!

Tested in: Autodesk 3DS MAX 7, 7.5, 8

rdg::tools::quickRenameSelected

rdg::offsetSpline

This macroscript lets you select a spline and generate one or more splines with a specified offset.
Unlike the 3DS MAX offset function in ‘Editable Spline’, this offset spline detached from the original spline.

Check the ‘consecutive’ checkbox to keep the result selected.

spline offset gui

To use it, go to Maxscript / Run Script and pick this file. You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface … and you’ll be able to assign the script to a quadmenu, shortcut key, etc.
Look for the script titled ‘generates a new offset spline’.
Assign a shortcut and voila, you’re done!

Tested in: Autodesk 3DS MAX 7, 7.5, 8

rdg::spline::offsetSpline

rdg::bitmap2planes

This is my entry for the cgSociety MAXscript Challenge #008: “BACK TO BASICS: Bitmap to Planes

bitmap to planes gui

This utility converts a bitmap to grayscale and displays its pixels as planes. The planes are rotated depending on their grayscale value. There is a option to animate the rotation to fade in the image.

You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface …

Tested in: Autodesk 3DS MAX 7, 7.5, 8

Download: rdg::bitmap2planes

rdg::quickHideReveal

rdg::quickHideReveal

This script lets you select a object to be hidden or unhidden.
It supports single objects, a group of objects and hierachies.

This is usefull if your objects are distributed over several layers, for example development plans.

The script comes with to macroscripts:

  • the GUI: to select the object
  • the Trigger: to trigger the hide/unhide action via a keyboard shortcut

quick hide reveal gui

To use it, go to Maxscript / Run Script and pick this file. You will find it in the ‘rdg::preset’ category of Customize -> Customize User Interface … and you’ll be able to assign the script to a quadmenu, shortcut key, etc.
Look for the scripts titled ‘GUI: quick hide or reveal a specified object.’ and ‘TRIGGER: quick hide or reveal a specified object’.
Assign a shortcut and voila, you’re done!

Tested in: Autodesk 3DS MAX 7, 7.5, 8

Download: rdg::quickHideReveal