collada.scene.LightNode

class collada.scene.LightNode(light, xmlnode=None)

Bases: collada.scene.SceneNode

Represents a light being instantiated in a scene, as defined in the collada <instance_light> tag.

__init__(light, xmlnode=None)

Create a light instance

Parameters:
  • light (collada.light.Light) – The light being instantiated
  • xmlnode – When loaded, the xmlnode it comes from

Methods

__init__(light[, xmlnode]) Create a light instance
load(collada, node) Load and return a class instance from an XML node.
objects(tipo[, matrix]) Yields a collada.light.BoundLight if tipo=='light'
save() Saves the light node back to xmlnode
light = None

An object of type collada.light.Light representing the instantiated light

xmlnode = None

ElementTree representation of the light node.

objects(tipo, matrix=None)

Yields a collada.light.BoundLight if tipo=='light'

static load(collada, node)

Load and return a class instance from an XML node.

Inspect the data inside node, which must match this class tag and create an instance out of it.

Parameters:
  • collada (collada.Collada) – The collada file object where this object lives
  • localscope (dict) – If there is a local scope where we should look for local ids (sid) this is the dictionary. Otherwise empty dict ({})
  • node – An Element from python’s ElementTree API
save()

Saves the light node back to xmlnode