Skip to content

Interface and Operations / Script Library

All scripts written by users or installed from the script market can be viewed in the "Script Library" for editing and management.

View Mode

By default, when opening a script, you enter the "View Mode". The code is read-only and cannot be modified to prevent accidental changes.

view-mode.png

Edit Mode

To modify the code, click the "Edit" button to enter edit mode. In this mode, other logged-in users cannot enter edit mode, avoiding conflicts from multiple users editing simultaneously.

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

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

edit-mode.png

Execute Function

Select a function and click the "Execute" button to run the selected function. Outputs via the print(...) function and the function's return values will be displayed in the output box at the bottom.

run-func.png

Script Library Levels

The script library is divided into 3 levels:

  1. "Script Set"
  2. "Script"
  3. "Functions within scripts using @DFF.API(...)"

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

script-set-script-func.png

According to the hierarchy, the IDs of each script and function include the ID of their parent level, as follows:

ID
Script Set dev
Script dev__example
Function ID dev__example.hello_world

Reference Documentation

For more details about script development, refer to the documentation Script Development