the resolution and the frame range set correctly before saving the scene

This commit is contained in:
Kayla Man 2023-04-18 15:46:47 +08:00
parent 168d89013d
commit db72ed2e63

View file

@ -52,8 +52,11 @@ class MaxHost(HostBase, IWorkfileHost, ILoadHost, INewPublisher):
def context_setting():
return lib.set_context_setting()
rt.callbacks.addScript(rt.Name('systemPostNew'),
context_setting)
rt.callbacks.addScript(rt.Name('filePreSave'),
context_setting)
def has_unsaved_changes(self):
# TODO: how to get it from 3dsmax?