You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the pluginProcessed event does not include the context which makes it impossible to 'debug' data in it whenever a plug-in was processed that did not include an instance. It currently matches the result of pyblish.plugin.process().
Would it be problematic if we would include context in the process() results or potentially add context just to the result of the emitted event. Why, or why not?
Additional info
Being able to access the context would allow debugging like this Github Gist does without hacking like this:
# Don't tell me why - but the pyblish event does not# pass along the context with the result. And thus# it's non trivial to debug step by step. So, we# get the context like the evil bastards we are.i=0found_context=Nonecurrent_frame=inspect.currentframe()
forframe_infoininspect.getouterframes(current_frame):
frame_locals=frame_info.frame.f_localsif"context"inframe_locals:
found_context=frame_locals["context"]
breaki+=1ifi>5:
print("Warning: Pyblish context not found..")
# We should be getting to the context within # a few framesbreak
Which is slow, unsafe and not explicit behavior - it's basically a hack currently. It works in Maya, but crashes e.g. Nuke.
The text was updated successfully, but these errors were encountered:
Issue
Currently the
pluginProcessed
event does not include thecontext
which makes it impossible to 'debug' data in it whenever a plug-in was processed that did not include an instance. It currently matches the result ofpyblish.plugin.process()
.Would it be problematic if we would include
context
in theprocess()
results or potentially addcontext
just to the result of the emitted event. Why, or why not?Additional info
Being able to access the context would allow debugging like this Github Gist does without hacking like this:
Which is slow, unsafe and not explicit behavior - it's basically a hack currently. It works in Maya, but crashes e.g. Nuke.
The text was updated successfully, but these errors were encountered: