Created
August 17, 2016 11:38
-
-
Save tokejepsen/3596c78a738d7bbfc2183a671e49ad3b to your computer and use it in GitHub Desktop.
pyblish-lite debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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