Bases: collada.source.Source
Contains a source array of ID references, as defined in the collada <IDREF_array> inside a <source>.
If r is an instance of collada.source.IDRefSource, then len(r) is the length of the shaped source. len(r)*len(r.components) would give you the number of values in the source. r[i] is the ith item in the source array.
Create an id ref source instance.
Parameters: |
|
---|
Methods
__init__(id, data, components[, xmlnode]) | Create an id ref source instance. |
load(collada, localscope, node) | |
save() | Saves the source back to xmlnode |
The unique string identifier for the source
Numpy array with the source values. This will be shaped as (-1,N) where N = len(self.components)
Tuple of strings describing the semantic of the data, e.g. ('MORPH_TARGET')
ElementTree representation of the source.