mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Jakub comments
This commit is contained in:
parent
e6ac57b35f
commit
13159c4889
2 changed files with 5 additions and 8 deletions
|
|
@ -924,11 +924,7 @@ def self_publish():
|
|||
|
||||
for instance in context.instances:
|
||||
node_path = instance.data.get("instance_node")
|
||||
if not node_path:
|
||||
continue
|
||||
|
||||
active = node_path in inputs_paths
|
||||
instance["active"] = active
|
||||
instance["active"] = node_path and node_path in inputs_paths
|
||||
|
||||
context.save_changes()
|
||||
|
||||
|
|
@ -941,7 +937,7 @@ def add_self_publish_button(node):
|
|||
label = os.environ.get("AVALON_LABEL") or "OpenPype"
|
||||
|
||||
button_parm = hou.ButtonParmTemplate(
|
||||
"{}_publish".format(label.lower()),
|
||||
"ayon_self_publish",
|
||||
"{} Publish".format(label),
|
||||
script_callback="from openpype.hosts.houdini.api.lib import "
|
||||
"self_publish; self_publish()",
|
||||
|
|
|
|||
|
|
@ -325,8 +325,9 @@ class HoudiniCreator(NewCreator, HoudiniCreatorBase):
|
|||
"""Method called on initialization of plugin to apply settings."""
|
||||
|
||||
# Apply General Settings
|
||||
self.add_publish_button = \
|
||||
project_settings["houdini"]["general"]["add_self_publish_button"]
|
||||
houdini_general_settings = project_settings["houdini"]["general"]
|
||||
self.add_publish_button = houdini_general_settings.get(
|
||||
"add_self_publish_button", False)
|
||||
|
||||
# Apply Creator Settings
|
||||
settings_name = self.settings_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue