FiberArt Plugin Development Tutorial
Plugin Installation
- Open FiberArt.
- Select Plugin from the menu bar, then click Plugin Management.
- In the popup interface, click Install Plugin.
- In the file selection dialog, navigate to the folder where the plugin is located and click to select.
- After installation, restart the software. The installed plugin can be found in the Plugin submenu (depending on the plugin). If it does not appear, check the plugin directory, the Log panel, and its dependencies.
Plugin Development
To develop a plugin with a GUI, the principle is that the user develops a Widget using PySide themselves, then places this Widget into a QDockWidget, and then embeds the QDockWidget into FiberArt's QMainWindow.
In the Python script, users can use the FiberArt Python SDK interface to call relevant FiberArt functions, such as creating nodes, getting selected nodes, calling node methods, attributes, etc.
Custom Plugin Example
Refer to this simple plugin example.
Demo acts as a regular Python module. During the startup of the FiberArt software, an import Demo statement is executed.
Current-Version Notes
- Plugins can use the Python SDK to access scene nodes, properties, and selections, and can register Qt panels.
- Post-processing scripts can render machine programs from JSON waypoints and templates; validate a standalone template before using it on a machine.
- The legacy Python workpiece-pose calibration widget has been migrated to the built-in C++ panel and should not be auto-registered through the old plugin entry.
- When a plugin fails to load, inspect the module name and exception in the Log panel instead of repeatedly installing the same plugin.