newdocument

guerilla.newdocument(warn, nodefault)

Create an empty new document

Parameters:
  • warn (bool) – If true, warn the user when the current document is modified and wait for Ok or Cancel to proceed
  • nodefault (bool) – If true, add default objects, such as default cameras
Returns:

true if the document was created

Return type:

bool