Python Panel

You can execute Python scripts and manipulate neoEBV.
The Python Panel consists of a Script Box for entering scripts, an Argument Box for entering argument of exectuing script, and a Console Box to display script execution results.
Please refer to the Executing Python Script page for an overview of the Python execution functionality and setup instructions.
Python Panel Toolbar

Button
| Icon | Item | Action |
|---|---|---|
| Run | Executes the script entered in the Script Box. | |
| Clear Console Before Run | If it is ON, clears the Console Box before executing Run. | |
| Clear Console | Clears the content of the Console Box. | |
| Load Script File | Opens a dialog to load a script from a file into the Script Box. | |
| Save Script File | Opens a dialog to save the content of the Script Box to a file. | |
| Python | Displays the Python Panel menu. |
Argument Box

Specifies arguments to be passed to the script at script runtime. The input string is interpreted as a space-separated list of runtime arguments. A space enclosed in "" is not interpreted as a delimiter.
Arguments specified in the Argument Box can be used in scripts by importing the sys module.
argv[0] contains the string “ScriptBox”. The specified arguments can be accessed from argv[1] and more in the order specified.
import sys
# "ScriptBox"
print(sys.argv[0])
# The first argument specified
print(sys.argv[1])
Menu
| Menu | Action |
|---|---|
| Run | Executes the script entered in the Script Box. |
| Clear Console Before Run | If it is ON, clears the Console Box before executing Run. |
| Clear Console | Clears the content of the Console Box. |
| Load Script File | Opens a dialog to load a script from a file into the Script Box. |
| Save Script File | Opens a dialog to save the content of the Script Box to a file. |
| Float Panel | Floats the panel. |
| Close Panel | Closes the panel. |
Sample Code
Please refer to the Sample Files page of Executing Python Script.
pynebv reference
Please refer to the pynebv Reference page.