Custom Python modules
Pixyz Studio embeds its own Python interpreter. The version of the interpreter is 3.8 for the latest versions of Pixyz Studio. You can add your own Python package or module and use it with these interpreters. You can also reimport a module if you encounter this error: Module not found
.
To find the location of packages that have been previously installed using the command pip install
, use this command:
pip show <package name>
To add a Python module to your Pixyz execution context, use one of these methods:
Use plugins.
Add the module to your Pixyz Studio plugins, in a folder named modules and located in the root plugin folder. Read more about plugins.
Use the
sys.path
function.Run this command:
# my_custom_module_path: folder containing the __init__.py file sys.path.append(my_custom_module_path) import my_custom_module
Add the module to the program files.
Copy the module to the folder that contains the Pixyz Studio program files:
C:\Program Files\PiXYZStudio
.