ironflow.nodes.built_in module

class ironflow.nodes.built_in.GetVar_Node(params)[source]

Bases: NodeBase

Gets the value of a script variable

color = '#c69a15'
init_inputs: List[NodeInputBP] = [<ryvencore.NodePortBP.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ryvencore.NodePortBP.NodeOutputBP object>]
place_event()[source]

place_event() is called once the node object has been fully initialized and placed in the flow. When loading content, place_event() is executed before the connections are built, which is important for nodes that need to update once and, during this process, set output data values, to prevent later connected (potentially sequential) nodes from receiving false updates because of that. Notice that this method gets executed every time the node is added to the flow, which can happen multiple times for the same object, for example due to undo/redo operations. Also note that GUI content is usually not accessible yet from here, for that use view_place_event().

title = 'get var'
update_event(input_called=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

var_val_changed(name, val)[source]
version: str = 'v0.1'
view_place_event()[source]

Called once all GUI for the node has been created by the frontend, if one exists. Any initial communication to widgets is supposed to happen here, and this method is not called when running without gui.

class ironflow.nodes.built_in.NodeBase(params)[source]

Bases: Node

class ironflow.nodes.built_in.Result_Node(params)[source]

Bases: NodeBase

Simply shows a value converted to str

color = '#c69a15'
init_inputs: List[NodeInputBP] = [<ryvencore.NodePortBP.NodeInputBP object>]
main_widget_class = None
main_widget_pos = 'between ports'
place_event()[source]

place_event() is called once the node object has been fully initialized and placed in the flow. When loading content, place_event() is executed before the connections are built, which is important for nodes that need to update once and, during this process, set output data values, to prevent later connected (potentially sequential) nodes from receiving false updates because of that. Notice that this method gets executed every time the node is added to the flow, which can happen multiple times for the same object, for example due to undo/redo operations. Also note that GUI content is usually not accessible yet from here, for that use view_place_event().

title = 'result'
update_event(input_called=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'
view_place_event()[source]

Called once all GUI for the node has been created by the frontend, if one exists. Any initial communication to widgets is supposed to happen here, and this method is not called when running without gui.

class ironflow.nodes.built_in.SetVar_Node(params)[source]

Bases: NodeBase

Sets the value of a script variable

action_make_active()[source]
action_make_passive()[source]
color = '#c69a15'
get_state()[source]

Used to store node-specific custom data that needs to be reloaded when loading a project or pasting copied components. All values will be serialized by pickle and base64. The corresponding method for the opposite operation is set_state().

init_inputs: List[NodeInputBP] = [<ryvencore.NodePortBP.NodeInputBP object>, <ryvencore.NodePortBP.NodeInputBP object>, <ryvencore.NodePortBP.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ryvencore.NodePortBP.NodeOutputBP object>, <ryvencore.NodePortBP.NodeOutputBP object>]
set_state(data, version)[source]

Used for reloading node-specific custom data which has been previously returned by get_state()

style = 'normal'
title = 'set var'
update_event(input_called=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'
class ironflow.nodes.built_in.SetVarsPassive_Node(params)[source]

Bases: NodeBase

Sets the values of multiple script variables

add_var_input()[source]
color = '#c69a15'
get_state()[source]

Used to store node-specific custom data that needs to be reloaded when loading a project or pasting copied components. All values will be serialized by pickle and base64. The corresponding method for the opposite operation is set_state().

init_inputs: List[NodeInputBP] = []
init_outputs: List[NodeOutputBP] = []
place_event()[source]

place_event() is called once the node object has been fully initialized and placed in the flow. When loading content, place_event() is executed before the connections are built, which is important for nodes that need to update once and, during this process, set output data values, to prevent later connected (potentially sequential) nodes from receiving false updates because of that. Notice that this method gets executed every time the node is added to the flow, which can happen multiple times for the same object, for example due to undo/redo operations. Also note that GUI content is usually not accessible yet from here, for that use view_place_event().

rebuild_remove_actions()[source]
remove_var_input(number)[source]
set_state(data, version)[source]

Used for reloading node-specific custom data which has been previously returned by get_state()

style = 'normal'
title = 'set vars passive'
update_event(input_called=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'
class ironflow.nodes.built_in.Val_Node(params)[source]

Bases: NodeBase

Evaluates a string from the input field

action_edit_via_dialog()[source]
color = '#c69a15'
get_current_var_name()[source]
get_state()[source]

Used to store node-specific custom data that needs to be reloaded when loading a project or pasting copied components. All values will be serialized by pickle and base64. The corresponding method for the opposite operation is set_state().

init_inputs: List[NodeInputBP] = [<ryvencore.NodePortBP.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ryvencore.NodePortBP.NodeInputBP object>]
place_event()[source]

place_event() is called once the node object has been fully initialized and placed in the flow. When loading content, place_event() is executed before the connections are built, which is important for nodes that need to update once and, during this process, set output data values, to prevent later connected (potentially sequential) nodes from receiving false updates because of that. Notice that this method gets executed every time the node is added to the flow, which can happen multiple times for the same object, for example due to undo/redo operations. Also note that GUI content is usually not accessible yet from here, for that use view_place_event().

set_state(data, version)[source]

Used for reloading node-specific custom data which has been previously returned by get_state()

style = 'small'
title = 'val'
update_event(input_called=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'