43. gui.guifunc
— GUI support functions.¶
This module defines a collection of functions which are the equivalent of functions defined in the draw module, but are executed in the viewport with the current GUI focus, instead of the script viewport.
43.1. Functions defined in module gui.guifunc¶
-
gui.guifunc.
viewport_function
(func)[source]¶ Perform a function on the current GUI viewport.
This is a decorator function executing a function on the current GUI viewport instead of on the current script viewport.
-
gui.guifunc.
renderMode
(*args, **kargs)[source]¶ Change the rendering profile to a predefined mode.
Currently the following modes are defined:
- wireframe
- smooth
- smoothwire
- flat
- flatwire
- smooth_avg