mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
add 'Make AYON Publishable' to OPMenu
This commit is contained in:
parent
078499dff8
commit
4eba35af82
1 changed files with 18 additions and 0 deletions
|
|
@ -5,6 +5,24 @@
|
|||
|
||||
<menuDocument>
|
||||
<menu>
|
||||
|
||||
<scriptItem id="opmenu.generic_create_ayon">
|
||||
<label>Make AYON Publishable</label>
|
||||
<context>
|
||||
<expression>hasattr(kwargs["node"], "render")</expression>
|
||||
</context>
|
||||
<scriptCode>
|
||||
<![CDATA[
|
||||
from ayon_core.hosts.houdini.api.creator_node_shelves import create_interactive
|
||||
|
||||
node = kwargs["node"]
|
||||
node.setSelected(True)
|
||||
create_interactive("io.ayon.creators.houdini.publish", **kwargs)
|
||||
]]>
|
||||
</scriptCode>
|
||||
</scriptItem>
|
||||
<separatorItem/>
|
||||
|
||||
<!-- Operator type and asset options. -->
|
||||
<subMenu id="opmenu.vhda_options_create">
|
||||
<insertBefore>opmenu.unsynchronize</insertBefore>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue