Issue in /src/pages/guides/creating-python-plugin.md

Open
#14 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with src/pages/guides/creating-python-plugin.md and review the custom_import.py example alongside the reported PySide2 and PySide6 imports. Confirm which import form is supported in the current Substance Painter version, then update the tutorial so the example loads without the reported import issue.

Written by the indexing model from the issue text.

Description

I was going over the "Creating a Python plugin" tutorial, and had issues running the custom_import.py plugin code. It seems that PySide 2 is not supported in the most recent version of Substance Painter.

Is the following more appropriate? While I still had errors after making this change, at least it loaded the plugin.

from PySide6 import QtWidgets
from PySide6.QtGui import QAction

Dominant language
HTML
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.