[3ds max] Max script batch export: silencing overwrite prompts

I’m trying to make a batch exporter, but I’m getting a MAXScript modal interrupt prompt that says " <filename>.fbx already exists. overwrite?"

Is there a way to silence this?

tried #noprompt?

http://download.autodesk.com/us/fbx/20112/3dsmax/_index.html

Nevermind, I’m a fool.


	fn exportFBX assetName filePath=(
		local fbxfilename=assetName+".fbx"
		local exportPath = filePath + fbxfilename
		if doesFileExist exportPath then(
			if queryBox  ( fbxfilename +"
already exists. Overwrite?") beep:True then (
				exportFile exportPath #noPrompt selectedOnly:False  using:FBXEXP
			)else(print "export canceled")
		)else(
			exportFile exportPath #noPrompt selectedOnly:False  using:FBXEXP
		)

The alert was generated by my own function

Repeat after me : GUI code does not go into functional code :slight_smile: