remove animationOnly parameter as it would convert the joint to transform data

This commit is contained in:
Kayla 2023-09-18 20:36:00 +08:00
parent c78d496ec9
commit b5d789e09b
2 changed files with 7 additions and 7 deletions

View file

@ -66,7 +66,8 @@ class FBXExtractor:
"upAxis": str, # x, y or z,
"triangulate": bool,
"FileVersion": str,
"skeletonDefinitions": bool
"skeletonDefinitions": bool,
"referencedAssetsContent": bool
}
@property
@ -97,7 +98,6 @@ class FBXExtractor:
"bakeComplexEnd": end_frame,
"bakeComplexStep": 1,
"bakeResampleAnimation": True,
"animationOnly": False,
"useSceneName": False,
"quaternion": "euler",
"shapes": True,
@ -109,7 +109,8 @@ class FBXExtractor:
"upAxis": "y",
"triangulate": False,
"fileVersion": "FBX202000",
"skeletonDefinitions": False
"skeletonDefinitions": False,
"referencedAssetsContent": False
}
def __init__(self, log=None):

View file

@ -2,6 +2,7 @@
import os
from maya import cmds # noqa
import maya.mel as mel
import pyblish.api
from openpype.pipeline import publish
@ -36,14 +37,12 @@ class ExtractRigFBX(publish.Extractor,
# to format it into a string in a mel expression
fbx_exporter = fbx.FBXExtractor(log=self.log)
out_set = instance.data.get("animated_skeleton", [])
# Export
instance.data["constraints"] = True
instance.data["skeletonDefinitions"] = True
instance.data["animationOnly"] = True
instance.data["referencedAssetsContent"] = True
fbx_exporter.set_options_from_instance(instance)
# Export
fbx_exporter.export(out_set, path.replace("\\", "/"))
if "representations" not in instance.data: