51. 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.

51.1. Functions defined in module gui.guifunc

gui.guifunc.viewport_func(funcname)[source]

Perform a function on the current GUI viewport.

Returns a function with the same name and functionality as a function in the draw module, but acting on the current GUI viewport instead of on the current script viewport (pf.canvas).

gui.guifunc.inGUIVP(func, *args, **kargs)[source]

Execute a draw function in the current GUI viewport.

gui.guifunc.renderMode(*args, **kargs)

Change the rendering profile to a predefined mode.

Currently the following modes are defined:

  • wireframe

  • smooth

  • smoothwire

  • flat

  • flatwire

  • smooth_avg

gui.guifunc.wireMode(*args, **kargs)

Change the wire rendering mode.

Currently the following modes are defined: ‘none’, ‘border’, ‘feature’,’all’

gui.guifunc.zoomAll(*args, **kargs)

Zoom thus that all actors become visible.