Lua SDK
-
Python SDK
2.0.0
Tutorial
Examples
Frequently Asked Questions
Guerilla API Reference
Classes
Functions
_
_exec
blast
classisclassof
countchildren
evalstring
executefunction
executescript
executestring
exportnodes
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
renderoptions
saveasref
savedocument
savedocumentas
setglobal
userrender
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