From 6d7123f8a4904ab1297655f2a24d42891e9dbf65 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Mon, 24 Jun 2024 14:44:58 +0800 Subject: [PATCH] add tooltips for use render version & fix the bug during loading ox rig --- server_addon/maya/client/ayon_maya/api/lib.py | 2 +- .../client/ayon_maya/plugins/create/create_ornatrix_cache.py | 4 ++++ .../ayon_maya/plugins/publish/collect_ornatrix_cache.py | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server_addon/maya/client/ayon_maya/api/lib.py b/server_addon/maya/client/ayon_maya/api/lib.py index f6d201df19..fba7547d8c 100644 --- a/server_addon/maya/client/ayon_maya/api/lib.py +++ b/server_addon/maya/client/ayon_maya/api/lib.py @@ -1733,7 +1733,7 @@ def is_valid_reference_node(reference_node): """ # maya 2022 is missing `isValidReference` so the check needs to be # done in different way. - if cmds.about(version=True) < 2023: + if int(cmds.about(version=True)) < 2023: try: cmds.referenceQuery(reference_node, filename=True) return True diff --git a/server_addon/maya/client/ayon_maya/plugins/create/create_ornatrix_cache.py b/server_addon/maya/client/ayon_maya/plugins/create/create_ornatrix_cache.py index 8f57151ea8..db615f1173 100644 --- a/server_addon/maya/client/ayon_maya/plugins/create/create_ornatrix_cache.py +++ b/server_addon/maya/client/ayon_maya/plugins/create/create_ornatrix_cache.py @@ -23,6 +23,10 @@ class CreateOxCache(plugin.MayaCreator): [ BoolDef("renderVersion", label="Use Render Version", + tooltip="When on, hair in the scene will be " + "switched to render mode and dense hair " + "strands will be exported. Otherwise, what " + "is seen in the viewport will be exported.", default=True), BoolDef("upDirection", label="Up Direction", diff --git a/server_addon/maya/client/ayon_maya/plugins/publish/collect_ornatrix_cache.py b/server_addon/maya/client/ayon_maya/plugins/publish/collect_ornatrix_cache.py index 01b9c92bfa..36d1237644 100644 --- a/server_addon/maya/client/ayon_maya/plugins/publish/collect_ornatrix_cache.py +++ b/server_addon/maya/client/ayon_maya/plugins/publish/collect_ornatrix_cache.py @@ -34,5 +34,4 @@ class CollectOxCache(plugin.MayaInstancePlugin): } if shape_data["cbId"]: settings["nodes"].append(shape_data) - self.log.debug(settings) instance.data["cachesettings"] = settings