-
Notifications
You must be signed in to change notification settings - Fork 12
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
error with the silent non-GUI publish #44
Comments
Thanks for reporting this, help to solve it is most welcome, here's the line at the time of this issue. pyblish-nuke/pyblish_nuke/lib.py Lines 194 to 197 in 986deae
|
@mottosso I tried to fix this by adding a check if But I am trying to understand more about Pyblish and how callbacks work, data sharing, etc. Any links would be really appreciated |
Yes, the context should not be empty. In theory it couldn't be, as without a context there can't be any publishing. So this is a bug somewhere. Here's the documentation. If we follow the breadcrums:
Only the problem is, no context is given from Nuke. So the solution seems to be to simply create a new context in Nuke, and pass that to publish_iter. This is what is expected of def publish_iter(context=None, plugins=None, targets=None):
# ...
context = api.Context() if context is None else context
plugins = api.discover() if plugins is None else plugins |
I seems the underlying problem is that in I'm happy to create a PR either on pyblish-base adressing this if it's likely to be merged, or add your described workaround here on pyblish-nuke, which would maybe be less clean, but avoid changing the base package :) |
I see an error when I try to run File --> Publish
But the UI launches fine (File --> Publish...)
Nuke 14
Is anyone else facing the issue? Looks like the issue is with the callback
The text was updated successfully, but these errors were encountered: