General Category > General CG Discussion
Help with Max scripting
aaouviz:
Man, I suck at maxscript...
I want to make a simple "Save and then Exit" script (via toolbar button).
This is what I have, but I can't quite get it to work as intended. Any helpers out there? Many thanks!
--- Code: -----Original script by: aaouviz
------
macroscript SaveAndExit
category: "AAScripts"
buttonText: "Save and Exit"
tooltip: "Save and Exit"
Icon:#("AAGen_01",1)
(
saveMaxFile
)
quitmax #noprompt
--- End code ---
James Vella:
I assume you just want File > Save correct? Overwrite previous version?
--- Code: -----Original script by: aaouviz
------
macroscript SaveAndExit
category: "AAScripts"
buttonText: "Save and Exit"
tooltip: "Save and Exit"
Icon:#("AAGen_01",1)
(
max file save
quitmax #noprompt
)
--- End code ---
aaouviz:
Amazing, and perfect as always James.
Thanks a million!
James Vella:
Glad to hear its working as expected :)
Frood:
Hi,
picked up the idea but implemented it as file menu item. Additionally, saving only happens if a save is required (no changed made to scene, relying on getSaveRequired()). Script goes to any autostart folder (usually scripts\startup). Sharing it as an alternate option.
Good Luck
Navigation
[0] Message Index
[#] Next page
Go to full version