Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created August 17, 2016 11:38
Show Gist options
  • Save tokejepsen/3596c78a738d7bbfc2183a671e49ad3b to your computer and use it in GitHub Desktop.
Save tokejepsen/3596c78a738d7bbfc2183a671e49ad3b to your computer and use it in GitHub Desktop.
pyblish-lite debug
import pyblish_lite
from pyblish_lite import mock
import pyblish.api
for plugin in mock.plugins:
pyblish.api.register_plugin(plugin)
def instance_toggled(instance, new_value, old_value):
print instance
print new_value
print old_value
def plugin_toggled(plugin, new_value, old_value):
print plugin
print new_value
print old_value
pyblish.api.register_callback("instanceToggled", instance_toggled)
pyblish.api.register_callback("pluginToggled", plugin_toggled)
pyblish_lite.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment