Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Houdini: Fix CreateHDA for Houdini 20+ #698

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# -*- coding: utf-8 -*-
"""Creator plugin for creating publishable Houdini Digital Assets."""
import hou
from assettools import setToolSubmenu

try:
# Houdini 20+
from assettools import setTabSubMenu
except ImportError:
# Fallback for older Houdini
from assettools import setToolSubmenu as setTabSubMenu

import ayon_api
from ayon_core.pipeline import (
Expand Down Expand Up @@ -121,7 +127,7 @@ def create_instance_node(
hda_def.setUserInfo(get_ayon_username())

if pre_create_data.get("use_project"):
setToolSubmenu(hda_def, "AYON/{}".format(self.project_name))
setTabSubMenu(hda_def, "AYON/{}".format(self.project_name))

return hda_node

Expand Down
Loading