pymiere icon indicating copy to clipboard operation
pymiere copied to clipboard

Missing "save" parameter at pymiere.objects.premiere_objects.py.Project.closeDocument function

Open luis10barbo opened this issue 2 years ago • 0 comments

Function now:

def closeDocument(self):
        return self._eval_on_this_object("closeDocument()")

Problem: closeDocument() has a bool parameter that determines if the document will be saved at closeup, but pymiere's function doesn't account for it.

by executing closeDocument("false"), premiere will quit from the document without saving it.

It would be great if you added a parameter like save:bool to pymiere's function:

def closeDocument(self, save=True):
	return self._eval_on_this_object(f"closeDocument({save_document})")

then a check to convert from python bool to javascript bool in string

def closeDocument(self, save=True):
	save_document = "true" if save == True else "false"
	return self._eval_on_this_object(f"closeDocument({save_document})")

luis10barbo avatar May 21 '22 02:05 luis10barbo