Gets or sets the value of a component within a dialog.
planetcnc.dlg_comp_value(component) planetcnc.dlg_comp_value(component, value)
#! /usr/bin/env python import planetcnc # Get the current value of a component current_value = planetcnc.dlg_comp_value(my_component) print("Current value:", current_value) # Set a new value for the component planetcnc.dlg_comp_value(my_component, 42) print("Component value updated.")