newdocumentΒΆ

boolean success newdocument ( boolean warn , boolean nodefault )

Create an empty new document

Arguments:

  • warn If true, warn the user when the current document is modified and wait for Ok or Cancel to proceed
  • nodefault If true, add default objects, such as default cameras

Return:

  • success true if the document was created