Call function in session
Call a function defined in an open script session with arguments, and return what it returns (G4).
Command in the Scripts toolkit · id ooa.script/call_in_session · 6 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | script | Name of the script session, from Open script session. |
| Function | String | Yes | Function name; dots for a function of an object or module. | |
| Arguments | List | No | Arguments in order. | |
| Keyword arguments | Dictionary | No | Python only: named arguments. | |
| Timeout (seconds) | Number | No | 300 | Maximum run time; the session is closed when it runs out. |
| Fail on error | Boolean | No | true | Stop the step when the function raises an error. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | Value the function returned. |
| output | String | Text the function printed. |
| error | String | The error when fail_on_error is off; empty on success. |