### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »

# collada.source.InputList

class `collada.source.``InputList`

  Bases: `object`

  Used for defining input sources to a geometry.

  digraph inheritance7607915fbc { rankdir=LR; size="8.0, 12.0"; "InputList" [style="setlinewidth(0.5)",URL="#collada.source.InputList",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Used for defining input sources to a geometry.",height=0.25,shape=box,fontsize=10]; "Source" [style="setlinewidth(0.5)",URL="collada.source.Source.html#collada.source.Source",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Abstract class for loading source arrays",height=0.25,shape=box,fontsize=10]; "DaeObject" -> "Source" [arrowsize=0.5,style="setlinewidth(0.5)"]; "FloatSource" [style="setlinewidth(0.5)",URL="collada.source.FloatSource.html#collada.source.FloatSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of floats, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "FloatSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "IDRefSource" [style="setlinewidth(0.5)",URL="collada.source.IDRefSource.html#collada.source.IDRefSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of ID references, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "IDRefSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NameSource" [style="setlinewidth(0.5)",URL="collada.source.NameSource.html#collada.source.NameSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of strings, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "NameSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="This class is the abstract interface to all collada objects.",height=0.25,shape=box,fontsize=10]; }

  `__init__`()

    Create an input list

  Methods

  `__init__`() | Create an input list
  `addInput`(offset, semantic, src[, set]) | Add an input source to this input list.
  `getList`() | Returns a list of tuples of the source in the form (offset, semantic, source, set)

  `addInput`(offset, semantic, src, set=None)

    Add an input source to this input list.

    Parameters:

    - offset (int) – Offset for this source within the geometry’s indices
    - semantic (str) –
      The semantic for the input source. Currently supported options are:
        - VERTEX
        - NORMAL
        - TEXCOORD
        - TEXBINORMAL
        - TEXTANGENT
        - COLOR
        - TANGENT
        - BINORMAL
    - src (str) – A string identifier of the form #srcid where srcid is a source within the geometry’s `sourceById` array.
    - set (str) – Indicates a set number for the source. This is used, for example, when there are multiple texture coordinate sets.

  `getList`()

    Returns a list of tuples of the source in the form (offset, semantic, source, set)

### Navigation

- index
- modules |
- next |
- previous |
- pycollada 0.4 documentation »
- API Reference »