hou.hipFile.load method
Load a hip file.
load(self, file_name, suppress_save_prompt=False)
If suppress_save_prompt is set to False, the function acts as if the file was loaded via “File → Open…”. It prompts you to save the current file before loading the new file and displays any load errors in a popup window. It also changes the name of the current file at the top of the main window and adds the file name to the list of most recently used files.
If the UI is not available (for example, if you run the function from hython), the suppress_save_prompt parameter is ignored and non- interactive load is always performed.
This method will raise a hou.OperationFailed exception if the file to be loaded does not exist or cannot be opened. The same exception will also be raised if the method is called during shutting down or loading/saving a hip file. In each case, the exception instance message will reflect the failure reason.
This method will raise a hou.LoadWarning exception if warnings are generated during load. The instance message will contain the warning text.
Replaces: mread
