👁‍🗨Data Monitor ⁄ Generator ⁄ Converter

DataMonitor

This is a Multipurpose Node that allows you to visualize, generate and manipulate Data from and to any other nodes. If the Passthrough Input is set, this node's text will be updated to a visual representation of the Data coming through the Input, converted to a string. The Output node will forward Passthrough following any modifications specified by Output_Type. If Passthrough is missing, the text manually entered into the node will be processed and converted to Output_Type. If conversion is not possible an error will be raised. You can use the Aux Inputs to further forward Data to be processed by this node, typically in conjunction with the FORMULA Output_Type and the %aux%,%aux2%,%aux3%,%aux4% and %aux5% variable replacements. Output_Type can have any of the following values: • ANY: The Passthrough/Text will be forwarded as is without any modification. • STRING: The Passthrough/Text will be converted to a String before being forwarded. • INT: The Passthrough/Text will be converted to an Integer before being forwarded. • FLOAT: The Passthrough/Text will be converted to a Floating Point Number before being forwarded. • BOOLEAN: The Passthrough/Text will be converted to a Boolean (True or False) before being forwarded. • LIST: The Passthrough/Text will be wrapped or converted into a List before being forwarded. • TUPLE: The Passthrough/Text will be wrapped or converted into a Tuple (a list of constants) before being forwarded. • DICT: The Passthrough/Text will be converted into a Dictionary before being forwarded. You must specify your expressions in "Key1:Value1,Key2:Value2…" format. • JSON: The Passthrough/Text will be loaded as a JSON dictionary. It must be valid JSON or the function will fail. • FORMULA: The Passthrough/Text will be evaluated as Python expression, with full support for most common operators, data types and built-in functions. Internally this is implemented through a restricted subset of the Python language to prevent arbitrary code execution. You can see the full list of support operations and functions in the included 'Helpers.py' file. This output mode allows you to perform complex mathematical and logical operations, including conditionals, loops, lambda functions, list comprehensions, return fully defined arbitrary data types and much, much more. This node further supports Dynamic Variable Notation which will replace the entries for the following variables: • %AUX%,%AUX2-5%: Replaces the placeholder %AUX%, %AUX2%,%AUX3%,%AUX4% and %AUX5% with the values of the respective Aux Inputs (Not Case Sensitive). • %PREV%: Replaces the placeholder %PREV% with the value of the Last Output emitted by this node (Not Case Sensitive). • %VAR_NAME%: Replaces the placeholder %VAR_NAME% with the value of the Memory Storage associated with that name, e.g. %FileName% (All Memory Storage variables are Case Sensitive). • %CLEAR%: Completely clears the text and the previous saved value, and returns an empty string (Not Case Sensitive). • __MEM__STORAGE__GET__: Replaces the placeholder __MEM__STORAGE__GET__ with a dictionary of all currently saved Memory Storage entries and their outputs. You can use this to be able to query and manipulate all saved Memory Storages directly (Case Sensitive). • __MEM__STORAGE__SET__: Force replaces the internal Memory Storage dictionary with a new dictionary specified by the Aux input, allowing you to overwrite all saved Memory Storages directly. __MEM__STORAGE__SET__ will then be removed from the output after the operation is completed (Case Sensitive). • __MEM__STORAGE__CLEAR__: Deletes ALL current memory storages from Memory. Equivalent to __MEM__STORAGE__SET__ with an empty dictionary {} in the Auxiliary parameter. Use with caution. (Case Sensitive). • =>__AUX__DISPLAY__PREFIX__: If this string is found inside the Auxiliary parameter, any text preceding this tag in the Auxiliary parameter will be prepended to the final output of the processing, effectively allowing Aux to be used to display additional information in conjunction with Passthrough. • __AUX__DISPLAY__SUFFIX__=>: If this string is found inside the Auxiliary parameter, any text following this tag in the Auxiliary parameter will be appended to the final output of the processing, effectively allowing Aux to be used to display additional information in conjunction with Passthrough. HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.

Pack: ControlFlowUtils

custom_nodes.ControlFlowUtils

Inputs (8)

NameTypeRequired
textSTRINGrequired
output_typeCOMBOrequired
passthrough*optional
aux*optional
aux2*optional
aux3*optional
aux4*optional
aux5*optional

Outputs (1)

NameType
output*