collada.asset.Contributor¶
-
class
collada.asset.
Contributor
(author=None, authoring_tool=None, comments=None, copyright=None, source_data=None, xmlnode=None)¶ Bases:
collada.common.DaeObject
Defines authoring information for asset management
-
__init__
(author=None, authoring_tool=None, comments=None, copyright=None, source_data=None, xmlnode=None)¶ Create a new contributor
Parameters: - author (str) – The author’s name
- authoring_tool (str) – Name of the authoring tool
- comments (str) – Comments from the contributor
- copyright (str) – Copyright information
- source_data (str) – URI referencing the source data
- xmlnode – If loaded from xml, the xml node
Methods
__init__
([author, authoring_tool, comments, …])Create a new contributor load
(collada, localscope, node)Load and return a class instance from an XML node. save
()Saves the contributor info back to xmlnode
Contains a string with the author’s name.
Contains a string with the name of the authoring tool.
-
comments
= None¶ Contains a string with comments from this contributor.
-
copyright
= None¶ Contains a string with copyright information.
-
source_data
= None¶ Contains a string with a URI referencing the source data for this asset.
-
xmlnode
= None¶ ElementTree representation of the contributor.
-
static
load
(collada, localscope, 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
-