Skip to content

Conversation

@kwokcb
Copy link
Contributor

@kwokcb kwokcb commented Jul 22, 2025

Changes

Delay loading Qt modules as they appear to clash with USD imports.
Workaround for #103.

Details

This appears to be the plugin load location:

plugin_manager = qx_plugin.QuiltiXPluginManager("QuiltiX")
plugin_manager.load_plugins_from_environment_variable()
plugin_manager.add_hookspecs(qx_plugin.QuiltixHookspecs)

which will cause the Qt module imports in the plugin.

Usd appears to be imported afterwards:

from pxr import Usd, UsdShade

By loading Qt when after_ui_init occurs:

plugin_manager.hook.after_ui_init(editor=self)

this seems to make this "run" at least.

Test

Sample JSON plugin will load.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant