mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Remove unused instanceToggled callbacks (#5862)
This commit is contained in:
parent
6226f5760a
commit
efa9b8fe4c
4 changed files with 0 additions and 46 deletions
|
|
@ -74,11 +74,6 @@ class AfterEffectsHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
||||||
|
|
||||||
register_loader_plugin_path(LOAD_PATH)
|
register_loader_plugin_path(LOAD_PATH)
|
||||||
register_creator_plugin_path(CREATE_PATH)
|
register_creator_plugin_path(CREATE_PATH)
|
||||||
log.info(PUBLISH_PATH)
|
|
||||||
|
|
||||||
pyblish.api.register_callback(
|
|
||||||
"instanceToggled", on_pyblish_instance_toggled
|
|
||||||
)
|
|
||||||
|
|
||||||
register_event_callback("application.launched", application_launch)
|
register_event_callback("application.launched", application_launch)
|
||||||
|
|
||||||
|
|
@ -186,11 +181,6 @@ def application_launch():
|
||||||
check_inventory()
|
check_inventory()
|
||||||
|
|
||||||
|
|
||||||
def on_pyblish_instance_toggled(instance, old_value, new_value):
|
|
||||||
"""Toggle layer visibility on instance toggles."""
|
|
||||||
instance[0].Visible = new_value
|
|
||||||
|
|
||||||
|
|
||||||
def ls():
|
def ls():
|
||||||
"""Yields containers from active AfterEffects document.
|
"""Yields containers from active AfterEffects document.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,9 +129,6 @@ class NukeHost(
|
||||||
register_event_callback("workio.open_file", check_inventory_versions)
|
register_event_callback("workio.open_file", check_inventory_versions)
|
||||||
register_event_callback("taskChanged", change_context_label)
|
register_event_callback("taskChanged", change_context_label)
|
||||||
|
|
||||||
pyblish.api.register_callback(
|
|
||||||
"instanceToggled", on_pyblish_instance_toggled)
|
|
||||||
|
|
||||||
_install_menu()
|
_install_menu()
|
||||||
|
|
||||||
# add script menu
|
# add script menu
|
||||||
|
|
@ -402,25 +399,6 @@ def add_shortcuts_from_presets():
|
||||||
log.error(e)
|
log.error(e)
|
||||||
|
|
||||||
|
|
||||||
def on_pyblish_instance_toggled(instance, old_value, new_value):
|
|
||||||
"""Toggle node passthrough states on instance toggles."""
|
|
||||||
|
|
||||||
log.info("instance toggle: {}, old_value: {}, new_value:{} ".format(
|
|
||||||
instance, old_value, new_value))
|
|
||||||
|
|
||||||
# Whether instances should be passthrough based on new value
|
|
||||||
|
|
||||||
with viewer_update_and_undo_stop():
|
|
||||||
n = instance[0]
|
|
||||||
try:
|
|
||||||
n["publish"].value()
|
|
||||||
except ValueError:
|
|
||||||
n = add_publish_knob(n)
|
|
||||||
log.info(" `Publish` knob was added to write node..")
|
|
||||||
|
|
||||||
n["publish"].setValue(new_value)
|
|
||||||
|
|
||||||
|
|
||||||
def containerise(node,
|
def containerise(node,
|
||||||
name,
|
name,
|
||||||
namespace,
|
namespace,
|
||||||
|
|
|
||||||
|
|
@ -48,11 +48,6 @@ class PhotoshopHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
||||||
pyblish.api.register_plugin_path(PUBLISH_PATH)
|
pyblish.api.register_plugin_path(PUBLISH_PATH)
|
||||||
register_loader_plugin_path(LOAD_PATH)
|
register_loader_plugin_path(LOAD_PATH)
|
||||||
register_creator_plugin_path(CREATE_PATH)
|
register_creator_plugin_path(CREATE_PATH)
|
||||||
log.info(PUBLISH_PATH)
|
|
||||||
|
|
||||||
pyblish.api.register_callback(
|
|
||||||
"instanceToggled", on_pyblish_instance_toggled
|
|
||||||
)
|
|
||||||
|
|
||||||
register_event_callback("application.launched", on_application_launch)
|
register_event_callback("application.launched", on_application_launch)
|
||||||
|
|
||||||
|
|
@ -177,11 +172,6 @@ def on_application_launch():
|
||||||
check_inventory()
|
check_inventory()
|
||||||
|
|
||||||
|
|
||||||
def on_pyblish_instance_toggled(instance, old_value, new_value):
|
|
||||||
"""Toggle layer visibility on instance toggles."""
|
|
||||||
instance[0].Visible = new_value
|
|
||||||
|
|
||||||
|
|
||||||
def ls():
|
def ls():
|
||||||
"""Yields containers from active Photoshop document
|
"""Yields containers from active Photoshop document
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,10 +84,6 @@ class TVPaintHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
||||||
register_loader_plugin_path(load_dir)
|
register_loader_plugin_path(load_dir)
|
||||||
register_creator_plugin_path(create_dir)
|
register_creator_plugin_path(create_dir)
|
||||||
|
|
||||||
registered_callbacks = (
|
|
||||||
pyblish.api.registered_callbacks().get("instanceToggled") or []
|
|
||||||
)
|
|
||||||
|
|
||||||
register_event_callback("application.launched", self.initial_launch)
|
register_event_callback("application.launched", self.initial_launch)
|
||||||
register_event_callback("application.exit", self.application_exit)
|
register_event_callback("application.exit", self.application_exit)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue