/bpyside

Primary LanguagePythonMIT LicenseMIT

Blender/PySide2 sample window

A tiny template script for PySide window in Blender

For more advanced setup, you may take a look blender_pyside2_example by friedererdmann

Requirements

  • PySide2

Install

Install PySide2

If you already have PySide2 on your system, you may modify your PYTHONPATH and run Blender from terminal, or make a startup file and modify sys.path. You may also install pip to blender and install PySide2 to Blender's site-package.

Install this code

Download and copy the repsoitory to Blender addon directory (eg. in mac, /Users/USER/Library/Application Support/Blender/3.2/scripts/addons)

This is not addon (for now). So create a new text in the Scripting tab and run the following command.

from bpyside import main
main.register()

panel

Code used in this repository