1. Controlling MXW through Python: Difference between revisions

From MXWendler Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
As of version 7.2., plugins are available in the playlist. There are two paths searched during program startup, the program folder and the user folder:
As of version 7.2., plugins are available in the playlist. There are two paths searched during program startup, the program folder and the user folder:


plugins/playlist/python
* (Program folder)/plugins/playlist/python/
* ~.StageDesigner/plugins/playlist/python/ (Unix)
* ~.StageDesigner/plugins/playlist/python/ (Windows)
 
Each plugin resides in a folder. Inside this folder, two files have to be present,
 
* mxw_plugin.ini
* mxw_main.py
 
The file mxw_plugin.ini defines the registration of the plugin

Revision as of 19:58, 3 December 2023

Python is used in MXW trough a plugin interface. Specified program paths are searched for plugins which are registered, and then loaded through the user interface.

As of version 7.2., plugins are available in the playlist. There are two paths searched during program startup, the program folder and the user folder:

  • (Program folder)/plugins/playlist/python/
  • ~.StageDesigner/plugins/playlist/python/ (Unix)
  • ~.StageDesigner/plugins/playlist/python/ (Windows)

Each plugin resides in a folder. Inside this folder, two files have to be present,

  • mxw_plugin.ini
  • mxw_main.py

The file mxw_plugin.ini defines the registration of the plugin