scene

class guerilla.scene

Bases: object

A scene object that contains a scene graph to traverse

static instanciate(name, source, instance)

Create an instanciating scene from an input scene and a scene to instanciate

Parameters:
  • name (str) – the name of the scene
  • source (scene) – the scene to use a source
  • instance (scene) – the scene to use an instance
Returns:

the new sceneinstanciate

Return type:

sceneinstanciate

static merge(name, inputs)

Create a merge scene from an input scenes

Parameters:
  • name (str) – the name of the scene
  • inputs ({scene}) – the scenes to merge
Returns:

the new scenemerge

Return type:

scenemerge

static override(name, input)

Create an override scene from an input scene

Parameters:
  • name (str) – the name of the scene
  • input (scene) – the scene to override
Returns:

the new sceneoverride

Return type:

sceneoverride

static setevalprogress(progress)

Set the current progression of the scene evaluation

Parameters:progress (number) – the progression, between 0 and 1
static setevalresult(result)

Store the Lua/Python script evaluation result

Parameters:result (scene) – the evaluated scene
static unode(name)

Create a user scenegraphnode

Parameters:name (str) – the name of the scene
Returns:the new user node
Return type:unode
static uref(refpath)

Create ref data chunk

Parameters:refpath (str) – the path to the referenced scene
Returns:the new user ref chuck
Return type:uref
static urefnode(name, refpath)

Create a user scenegraphnode that references a scene node

Parameters:
  • name (str) – the name of the node
  • refpath (str) – the path to the referenced scene
Returns:

the new user ref node

Return type:

urefnode

static uscene(name)

Create a user scene

Parameters:name (str) – the name of the scene
Returns:the new user scene
Return type:uscene