ComfyUI Node

VRGDG_PythonCodeRunner

A ComfyUI node in VRGDG/General with 3 inputs and 3 outputs.

By vrgamegirl19·Created about a year ago·Updated 22 days ago· 533
VRGDG_PythonCodeRunner
    • result_text
    • result_json
    • has_error
    python_code# Available vars: input_text, input_json, json, math, re # Safety mode: imports, filesystem/process/network APIs are blocked. # Set `result` to any value. data = json.loads(input_json) if input_json.strip() else {} result = json.dumps(data, indent=2)
    input_text
    input_json
    CategoryVRGDG/General

    Inputs (3)

    NameTypeDefaultDescription
    python_codeSTRING# Available vars: input_text, input_json, json, math, re # Safety mode: imports, filesystem/process/network APIs are blocked. # Set `result` to any value. data = json.loads(input_json) if input_json.strip() else {} result = json.dumps(data, indent=2)
    input_textoptSTRING
    input_jsonoptSTRING

    Outputs (3)

    NameTypeDescription
    result_textSTRING
    result_jsonSTRING
    has_errorBOOLEAN