Bases: collada.source.Source
Contains a source array of strings, as defined in the collada <Name_array> inside a <source>.
If n is an instance of collada.source.NameSource, then len(n) is the length of the shaped source. len(n)*len(n.components) would give you the number of values in the source. n[i] is the ith item in the source array.
Create a name source instance.
Parameters: |
|
---|
Methods
__init__(id, data, components[, xmlnode]) | Create a name 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. ('JOINT')
ElementTree representation of the source.