Skip to content

Interface and Operations / Script Library

All scripts created by users or installed from the script market can be viewed and managed in the "Script Library".

View Mode

After opening a script by default, you enter "View Mode", where the code is read-only and cannot be modified, preventing accidental changes.

view-mode.png

Edit Mode

When needing to modify the code, click the "Edit" button to enter edit mode. In this mode, other logged-in users cannot edit the same script simultaneously, avoiding conflicts and overwriting.

The edited script is a draft and does not affect the currently active version. After completing the edits, click the "Publish" button to make the new script effective.

After completing script editing, it is recommended to exit edit mode as soon as possible

edit-mode.png

Execute Functions

After selecting a function, click the "Execute" button to run the selected function. The output from the print(...) function and the return value of the function will be displayed in the output box at the bottom.

run-func.png

Script Library Hierarchy

The script library is divided into 3 levels:

  1. "Script Set"
  2. "Script"
  3. "Functions defined with @DFF.API(...) inside the script"

Among these, script sets and scripts are manually created by users, while functions defined with @DFF.API(...) are automatically generated based on user-written code.

script-set-script-func.png

According to the hierarchy, the IDs of scripts and functions include their parent IDs, as shown below:

ID
Script Set dev
Script dev__example
Function ID dev__example.hello_world

Reference Documentation

For detailed information on script development, please refer to the documentation Script Development