5.7. sceneglobals — Setting global scene data

The Globals class is a convenience class that just sets the global attributes in the scene object. You can use it as a shortcut to set the attributes.

class cgkit.sceneglobals.Globals(up = (0, 0, 1), handedness = 'r', unit = 'm', unitscale = 1.0, **keyargs)

up is the global “up” direction.

handedness specifies whether a left handed or right handed coordinate system should be used.

unit and unitscale specify what 1 unit in 3D space would be in the real world.

Any additional argument is stored in the scene as a global option and can be retrieved using the getGlobal() method of the scene object.

Previous topic

5.6. scene — Storing 3D data

Next topic

5.8. cmds — Scene-specific commands

This Page