Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Natron Integration #4269

Closed
wants to merge 4 commits into from
Closed

Natron Integration #4269

wants to merge 4 commits into from

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Dec 28, 2022

Brief description

OpenPype integration for open-source compositing software Natron

Description

This is a prototype/draft integration for OpenPype with Natron. It's very early stages with just some placeholder code to be implemented to get it working. Currently it's able to launch Natron and have the OpenPype menu entries added - however the Qt tools do not load as of yet.

Status:

  • Implement application
  • Implement OpenPype menu entries
  • Implement Qt tools
  • Implement loaders
  • Implement save/load/scene callbacks
  • Implement publishing logic

Description

Natron 2.5.0 is the first version on Python 3+ I believe and uses 3.10. It still uses PySide however and it seems there are some issues with the Qt implementation that make it fail for a bit. I'm getting odd errors like:

Failed to import qtpy.QtCore, make sure it is bundled with your Natron installation or reachable through the Python path. Note that Natron disables usage of site-packages).
Failed to load S:/openpype/OpenPype/openpype/hosts/natron/startup/init.py: S:\openpype\OpenPype\.venv\lib\site-packages\blessed\terminal.py:186: UserWarning: Failed to setupterm(kind='unknown'): Could not find terminal unknown

And also what I've reported here.

Since I'm not a Natron user myself I'll leave this PR as a draft for now to gauge interest in the OpenPype community whether it's worth spending some more time on a potential Natron integration. It might also be worth waiting around a bit for a new 2.5+ release of Natron which might already update to a newer Qt or resolve some of the issues of its Qt (if they are actual issues, they might come from OpenPype usage of Qt of course). It seems Qt5 progress is tracked here and release is targeted for Natron 2.6+.

Again, this is a very quick 'draft' layout for the code.

Testing notes:

It's hardly functional but you can start Natron through OpenPype and maybe debug yourself.

  1. Unzip latest Natron to C:/
  2. Run Natron from OpenPype

afbeelding

afbeelding

@iLLiCiTiT
Copy link
Member

Natron 2.5.0 is the first version on Python 3+ I believe and uses 3.10. It still uses PySide however and it seems there are some issues with the Qt implementation that make it fail for a bit. I'm getting odd errors like:

Develop is still using qtpy which should support PySide. It did work with Qt.py?

@BigRoy
Copy link
Collaborator Author

BigRoy commented Jan 4, 2023

Develop is still using qtpy which should support PySide. It did work with Qt.py?

No, it didn't. The bug seemed to be on the side of Natron.

I'll leave this PR stale until either Natron gets a big update in some time to show there's still updates being done or a big interest gets shown by the OpenPype community in a Natron integration.

@m-u-r-p-h-y m-u-r-p-h-y added the type: feature Larger, user affecting changes and completely new things label Jan 4, 2023
@mkolar
Copy link
Member

mkolar commented Jan 29, 2024

@BigRoy As much as this would be great to merge in. At this point I have to suggest re-creating it as AYON addon instead of commiting directly to OP repository. Even if it's absolutely minimal, it can make it's way as community addon to AYON market and live it's own life.

Closing in favour of separate repo for this work.

@mkolar mkolar closed this Jan 29, 2024
@ynbot ynbot added this to the next-patch milestone Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community contribution type: feature Larger, user affecting changes and completely new things
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants