Check inventory versions on file open.

This commit is contained in:
Toke Stuart Jepsen 2020-05-12 15:24:03 +01:00
parent f1d680a9c6
commit ea4afbefb9

View file

@ -61,7 +61,6 @@ def reload_config():
reload(module)
def install():
''' Installing all requarements for Nuke host
'''
@ -72,6 +71,9 @@ def install():
avalon.register_plugin_path(avalon.Creator, CREATE_PATH)
avalon.register_plugin_path(avalon.InventoryAction, INVENTORY_PATH)
# Register Avalon event for workfiles loading.
avalon.on("workio.open_file", lib.check_inventory_versions)
pyblish.register_callback("instanceToggled", on_pyblish_instance_toggled)
workfile_settings = lib.WorkfileSettings()
# Disable all families except for the ones we explicitly want to see