Skip to content
Alessandro Febretti edited this page Jan 10, 2014 · 6 revisions

Last revision: ver. 5.2-alpha2 - 5 November 2013

[[module cyclops | Python-Reference#module-cyclops]]

Implements a scene layer. Layers are used to organize groups of objects together, regardless of their position in the scene hyerarchy. Layers can be enabled and disabled to add/remove multiple objects from the scene. Objects in a disabled layer are explicitly removed from the scene traversal graph. Making layer disabling more efficient that setting object visibility when lots of objects need to be hidden.

SceneSayer derived classes are used to set various visual properties of contained objects (like lighting and compositing effects).

Methods

Method(s) Description
addLayer([[SceneLayer]] child) Adds a layer as a child of this scene layer.
removeLayer([[SceneLayer]] child) Removed a child of this layer.
setCamera([[Camera]] cam), [[Camera]] getCamera() Sets or gets the camera that will draw this layer. If no camera is specified all cameras will draw this layer.

Constants

Constant Description
CameraDrawExplicitLayer Use this flag on cameras that should only draw layers explicitly attached to them.
Clone this wiki locally