Guerilla Node class¶
-
class
guerilla_parser.
GuerillaNode
(id_, name, type_, parent=None)[source]¶ Bases:
object
Class representing a parsed Guerilla node.
Variables: - id (int) – Node id (value in parsed expression
oid[<id>]=
). - type (str) – Node type.
- parent (GuerillaNode) – Node parent.
- children (list[GuerillaNode]) – Node children.
- plug_dict (dict[str, GuerillaPlug]) – Node plug by name.
-
display_name
¶ Node name shown in UI.
Some nodes (render graph plugs, AOVs, etc.) have a distinction between internal name and UI display name. This property return UI name (aka PlugName attribute) if available.
Returns: Node name shown in UI. Return type: str
-
plugs
¶ Iterator over node plugs.
Returns: Iterator over node plugs. Return type: collection.iterator[GuerillaPlug]
-
get_child
(name)[source]¶ Return child node with given name.
Parameters: name – Name of the child node to return. Returns: Child node with given name. Return type: GuerillaNode Raises: KeyError – When no child node with given name is found.
-
get_plug
(name)[source]¶ Return plug with given name.
Parameters: name – Name of the plug to return. Returns: Plug with given name. Return type: GuerillaPlug Raises: KeyError – When no plug with given name is found
- id (int) – Node id (value in parsed expression