add tooltips for use render version & fix the bug during loading ox rig

This commit is contained in:
Kayla Man 2024-06-24 14:44:58 +08:00
parent 12755dbeab
commit 6d7123f8a4
3 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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",

View file

@ -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