collada.scene.Scene¶
- class collada.scene.Scene(id, nodes, xmlnode=None, collada=None)¶
The root object for a scene, as defined in a collada <scene> tag
- __init__(id, nodes, xmlnode=None, collada=None)¶
Create a scene
- Parameters:
id (str) – A unique string identifier for the scene
nodes (list) – A list of type
collada.scene.Noderepresenting the nodes in the scenexmlnode – When loaded, the xmlnode it comes from
collada – The collada instance this is part of
Methods
__init__(id, nodes[, xmlnode, collada])Create a scene
load(collada, node)Load and return a class instance from an XML node.
objects(tipo)Iterate through all objects in the scene that match tipo.
save()Saves the scene back to
xmlnodeAttributes
xmlnodeElementTree representation of the scene node.
idThe unique string identifier for the scene
nodesA list of type
collada.scene.Noderepresenting the nodes in the scenecolladaThe collada instance this is part of