Globals#
- tosclib.tosc.createTemplate(frame=None)[source]#
Generates a root xml Element and adds the base GROUP node to it.
- Parameters
- Return type
- tosclib.tosc.findKey(elements, key)[source]#
Iterate through element with children and return child whose key matches
- Parameters
elements (xml.etree.ElementTree.Element) –
key (str) –
- Return type
- tosclib.tosc.pullValueFromKey(inputFile, key, value, targetKey)[source]#
If you know the name of an element but don’t know its other properties. This function uses a .tosc file and gets its root. For passing an element see pullValueFromKey2
- tosclib.tosc.pullValueFromKey2(root, key, value, targetKey)[source]#
If you know the name of an element but don’t know its other properties. This parses an Element and has to convert it to string so its slower.
- tosclib.tosc.showElement(e)[source]#
Generic print string function, UTF-8, indented 2 spaces
- Parameters
e (xml.etree.ElementTree.Element | None) –