Lua SDK
-
Python SDK
1.4.12
Tutorial
Examples
Frequently Asked Questions
Guerilla API Reference
Classes
Functions
_
_exec
blast
classisclassof
countchildren
evalstring
executefunction
executescript
executestring
firstchild
getclass
getclassbyname
getclasschildren
getclassesbypattern
getclassname
getclassparents
getmainwindowhandle
getopenfilename
getpreferences
getprefixesfromname
getsavefilename
gpu_memory_info
isclass
isclassof
listchildren
loaddocument
mergedocument
newdocument
perror
plog
printselection
pwarning
pynode
quit
rangetonumbers
removeprefixfrompath
render
saveasref
savedocument
savedocumentas
setglobal
version
Changelog
Guerilla
Docs
»
Guerilla API Reference
»
newdocument
View page source
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