-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is "Path" supposed to be in the "Perspective" view? #289
Comments
The path is supposed to point to the originating python file. How are you registering your plugins? |
I have this method as part of a larger class where I can define class variables def registerPlugins(self):
"""Register given Pyblish plugins."""
pyblish.api.deregister_all_plugins()
pyblish.api.deregister_all_paths()
def isPyblishPlugin(obj):
return inspect.isclass(obj) and issubclass(obj, pyblish.api.Plugin)
for klass in self.PYBLISH_PLUGIN_CLASSES:
if issubclass(klass, pyblish.api.Plugin):
pyblish.api.register_plugin(klass)
for module in self.PYBLISH_PLUGIN_MODULES:
for _, klass in inspect.getmembers(module, isPyblishPlugin):
pyblish.api.register_plugin(klass) The reason I don't register paths instead of dealing with individual plugins is I couldn't find an easy way to reload() them. It made developing plugins painful if I had to restart Maya every time, but since I use register_plugin() when I source an external one, all I have to do is reload() my modules and refresh the UI and it's fine. Perhaps there is a bug in how plugins registered with register_plugin() "discover" where they come from? |
Have you tried using Pyblish will reload all plugins from the paths registered in thath environment variable. |
When does the reload happen exactly? Each time the UI opens? |
It reinitialized the plugins when you hit "Reset". It does this before collection. |
Cool! It definitely wasn't doing it for me last I tried registering plugins via |
Two issues here.
What you've experienced with it not reloading sounds like it could be a bug, would you be able to provide a small reproducible? How did you notice they weren't reloading? The pain you describe of having to restart Maya is exactly the reason for having them automatically reload each time. |
I instinctively thought that "Path" in the Perspective view represented the path to the relevant plugin, but actually it just points to the plugin.py from the pyblish_base code, for all of my plugins:
Is that right or is it a little bug?
The text was updated successfully, but these errors were encountered: