PDA

View Full Version : Invalidate Scene from Maxscript


sergo.pogosyan
11-02-2009, 03:49 PM
Is there any way to invalidate scene with maxscript?
I'm using user properties in my maxscript project, and if the only change made in scene is the change of user properties, max doesn't ask to save the file on opening new file.

I was thinking of making and deleting some little dummy object to invalidate scene, but it seems a little bit clumsy. Is there some more correct way?

SyncViewS
11-02-2009, 04:18 PM
Hi,
there is: setSaveRequired true. After setting this, exiting Max or resetting the scene will ask to save before proceeding.

Take a look at "Exiting and Resetting 3ds Max" and "MAX File Loading and Saving" in MaxScript Reference.

- Enrico

sergo.pogosyan
11-02-2009, 06:04 PM
Thank you!
This is exactly what I was searching for.

CGTalk Moderation
11-02-2009, 06:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.