looking for script to save multiple selected obj separately.

Anyone knows script that can save objects that I selected in scene as separate max files with name of the object?

File > Save selected… from the UI, ‘saveNodes’ command from MaxScript do just want you need.

Best regards,
Vlado

yes, but I need:

1) got selected 3 objects (tree, car, grass)
2) click script and got in desired folder 3 files (tree.max, car.max, grass.max)

The thing is I don’t want to select each object separately and save selected.

Ok I got it :slight_smile:

care to share your solution?

sure :slight_smile:
it’s simple but also it’s setting selected object possition to 0 0 0.

macroScript savingSelected category: "lukxScripts"

(
for obj in selection do
  (
  	  	tempPos = obj.position
		obj.position = [0,0,0]
		saveNodes obj ("c:/temp/" + obj.name + ".max")
		obj.position = tempPos
  		)
		)