View Full Version : "SAVE" command in Modeler for read-only .lwos

11-02-2006, 05:49 PM

In my plugin I am trying to issue a SAVE command in modeler. The command works, except when the object file is read-only, LightWave pops a message box stating "...Internal fault of unkown origin..." -- Unfortunately, our developers recieve objects files as "read-only" :foreheads

Just wondering if I am doing something wrong, or if there is a way around this, such as a "SaveAs" command in modeler?

Best regards,


11-03-2006, 07:09 AM
According to LW SDK
SAVE command takes argument filename..

If you don't write public plug-in select the all files, open Properties window and select/deselect read-only flag, it'll change the all files attribute at once..
Otherwise for public plug-in you can use OS specific functions to check and inform or switch off read-only flag before issuing SAVE command..

11-03-2006, 09:20 AM
Thanks for the reply.

My goal was to offer the user the ability to select a different filename.
I prompt the user to overwrite the existing file, then use win32 code to remove the read-only attribute from the file.

I just wish the object could be "saved as" under a different filename through the Modeler SAVE command, instead of just popping an error message...I am not worried about this feature as I can just create a panel to prompt the user for a new filename or a user can always just hit <Ctrl-s> to save under a different filename :boogiedow

I was just hoping there was a "SaveAs" command available as in Layout :D

Best regards,