HOW TO WRITE SCRIPTS

I was given ....................

Macroscript PolyAttachMultiple
Category: "TJ_Modeling"
Tooltip: "Poly Attach Multiple"
 
(
	undo on
	(
	selectionArray = selection as array;
	for obj in selectionArray do
		(
		convertTo obj PolyMeshObject
		)
	try
		(
		for i = 1 to (selectionArray.count - 1) do
			polyOp.attach selectionArray[selectionArray.count] selectionArray[i];
		)
	catch(print "you have attempted to attach incompatible objects")
	)
)

I want to install this to my 3ds max and i do not know how to. Anybody
Should i copy and paste it to RUN MAXSCRIPT (which i already tried)

Please let me know. I know hos to install script in MZP file, But the above information, I do not know what to do with it.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

I personally would not

I personally would not recommend you to use this script. It does not check whether selected objects can be converted to PolyMesh, instead it makes unnecessary check (post facto) for attach event and then trow error message. If the objects were successfully converted, they not need attach check. But if can convert to poly must be catched at the beginning.

my recent MAXScripts RSS (archive here)

titane357's picture

Just drag and drop your text

Just drag and drop your text file "PolyAttachMultiple.mcr" on Max screen., then you'll be able to find your script in customize menu in "TJ_Modeling" category.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.