Message 1 of 2
Saving a read-only Max file?

Not applicable
01-27-2010
03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm currently integrating source control functionality into our 3DS Max plugins, and have come across a problem.
Attempting to save over a read-only file won't work - the save dialog rejects the attemtp before any of my code is reached.
I'm using the NOTIFY_FILE_PRE_SAVE notification, but this must be happening too late. Obviously the files have to be marked as read-only because they are not checked out at the point where the first save is requested.
Is there any way around this? If not, could a future release/patch of Max support allowing the NOTIFY_FILE_PRE_SAVE callback to happen earlier, so that I could remove the read-only status of
the file before it is opened and written to?
I don't want to check the file out when it is opened, as that could become counter-productive.
But hopefully I've missed something and it's already possible to work around this somehow?
Thanks,
Richard
I'm currently integrating source control functionality into our 3DS Max plugins, and have come across a problem.
Attempting to save over a read-only file won't work - the save dialog rejects the attemtp before any of my code is reached.
I'm using the NOTIFY_FILE_PRE_SAVE notification, but this must be happening too late. Obviously the files have to be marked as read-only because they are not checked out at the point where the first save is requested.
Is there any way around this? If not, could a future release/patch of Max support allowing the NOTIFY_FILE_PRE_SAVE callback to happen earlier, so that I could remove the read-only status of
the file before it is opened and written to?
I don't want to check the file out when it is opened, as that could become counter-productive.
But hopefully I've missed something and it's already possible to work around this somehow?
Thanks,
Richard