add publish comment

This commit is contained in:
Mustafa-Zarkash 2023-09-15 10:35:50 +03:00
parent 2d8034ae77
commit a4f4638065

View file

@ -687,7 +687,20 @@ def self_publish():
if not node_path:
continue
instance["active"] = current_node == node_path
active = current_node == node_path
if not active:
continue
instance["active"] = active
result, comment = hou.ui.readInput(
"Add Publish Note",
buttons=("Ok", "Cancel"),
title="Publish Note",
close_choice=1
)
if not result:
instance.data["comment"] = comment
context.save_changes()
publisher_show_and_publish()