collada.scene.ControllerNode¶
- class collada.scene.ControllerNode(controller, materials, xmlnode=None)¶
Represents a controller instance in a scene, as defined in the collada <instance_controller> tag. This class is highly experimental. More support will be added in version 0.4.
- __init__(controller, materials, xmlnode=None)¶
Creates a controller node
- Parameters:
controller (collada.controller.Controller) – A controller to instantiate in the scene
materials (list) – A list containing items of type
collada.scene.MaterialNode. Each of these represents a material that the controller should be bound to.xmlnode – When loaded, the xmlnode it comes from
Methods
__init__(controller, materials[, xmlnode])Creates a controller node
load(collada, node)Load and return a class instance from an XML node.
objects(tipo[, matrix])Yields a
collada.controller.BoundControlleriftipo=='controller'save()Saves the controller node back to
xmlnodeAttributes
xmlnodeElementTree representation of the controller node.
controllerAn object of type
collada.controller.Controllerrepresenting the controller being instantiated in the scenematerialsA list containing items of type
collada.scene.MaterialNode.