A cable in Copernicus represents an ordered bundle of individual wires. This class represents the structure of a cable’s contents, identifying the name and data type of each individual wire. You can call hou.CopNode.inputCableStructure and hou.CopNode.outputCableStructure to query the cables that are plugged into input ports or generated by output ports of a COP node.
Methods ¶
wireCount()
→ int
Returns the number of wires contained in a cable.
wireDataType(index)
→ str
Returns the type of the wire at the specified index.
wireName(index)
→ str
Returns the name of the wire at the specified index.
appearanceIndex(index)
→ int
Multiple wires in a cable can have the same name, in which case they are
distinguished by their appearance index. For example, if a cable has three
different wires called color
, the first wire’s appearance index will be 0,
the second wire’s will be 1, and the third wire’s will be 2. This method
returns the appearance index of the wire at the specified index. That is, it
returns 0-based index of a specific wire within all wires of the cable that
have the same name as it.