Skip to content

pytha.run_action

fabian-flassig edited this page May 28, 2026 · 1 revision

Runs the configured quick action on a part or a set of parts.

Similar to triggering the Part Tools II -> Quick Action function in the PYTHA user interface.

pytha.run_action(element)
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles to parts/NGOs the action should be applied to

Additional information

The action that is run is the one currently configured as the quick action in PYTHA. The behavior therefore depends on the user's configuration. If the user cancels the action it terminates silently without raising a Lua error.

See also:

pytha, element handles, Part Tools Functions

Clone this wiki locally