docs.unity3d.com
Version: 

    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.

    Pixyz Studio 2024.1.0.44 based on SDK 2024.3.0.14
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.