1xinghuan / usdNodeGraph

A Node Graph editor for USD.
125 stars 14 forks source link

usdView error: QWidget: Must construct a QApplication before a QWidget #15

Open Lucas3Dspain opened 1 year ago

Lucas3Dspain commented 1 year ago

I'm trying to add the plugin to usdView.

I'm getting this error: usdNodeGraph using qt binding: PySide2 QWidget: Must construct a QApplication before a QWidget

When I open usdView the NodeGraph menu appears but when I do Open Node Graph I get the error and usdView closes.

I'm using windows, and running this .bat file.

@ECHO OFF

SET "USD_INSTALL_ROOT=C:\USD_builds\my_builds\22_08\USD_complete"
SET "PYTHON=%USERPROFILE%\AppData\Local\Programs\Python\Python39"

SET "PATH=%USD_INSTALL_ROOT%\bin;%USD_INSTALL_ROOT%\lib"
SET "PATH=%PATH%;%PYTHON%\Scripts;%PYTHON%"
SET "PYTHONPATH=%USD_INSTALL_ROOT%\lib\python"

SET "USD_NODEGRAPH_ROOT=C:\Users\LucasMorante\Desktop\_Repos\usdNodeGraph"
SET "PYTHONPATH=%USD_NODEGRAPH_ROOT%/lib/python;%PYTHONPATH%"
SET "PYTHONPATH=%USD_NODEGRAPH_ROOT%/plugin;%PYTHONPATH%"
SET "PXR_PLUGINPATH_NAME=%USD_NODEGRAPH_ROOT%/plugin;%PXR_PLUGINPATH_NAME%"

usdview.cmd "someFilepath/prpSimple.usda"
PAUSE
Lucas3Dspain commented 1 year ago

Okay, I made it work using USD 21.08,.

@1xinghuan are there plans to update this to be compatible with pyside6?

edit: it opens but as soon as I interact with the UI it crashes

ryanknightley commented 1 month ago

Okay, I made it work using USD 21.08,.

@1xinghuan are there plans to update this to be compatible with pyside6?

edit: it opens but as soon as I interact with the UI it crashes

Lucas, did you ever get this working fully? I'm trying to use it with the current usdview release from Nvidia (24.08)