Avatar face animation not importing from Maya

Im trying to import my Avatar with a face animation from Maya but only some of the animation comes in. In the avatar editor it looks really broken eyes down and left seem to work.

I have attached the python script im using to get the FACs onto the head.

import maya.cmds as cmds

selected_objects = cmds.ls(selection=True)

for obj in selected_objects:
# Create custom string attributes as Extra Attributes
attrs = [
“RootFaceJoint”, “Frame0”, “Frame1”, “Frame2”, “Frame3”, “Frame4”, “Frame5”,
“Frame6”, “Frame7”, “Frame8”, “Frame9”, “Frame10”, “Frame11”, “Frame12”,
“Frame13”, “Frame14”, “Frame15”, “Frame16”, “Frame17”, “Frame18”, “Frame19”,
“Frame20”, “Frame21”, “Frame22”, “Frame23”, “Frame24”, “Frame25”, “Frame26”,
“Frame27”, “Frame28”, “Frame29”, “Frame30”, “Frame31”, “Frame32”, “Frame33”,
“Frame34”, “Frame35”, “Frame36”, “Frame37”, “Frame38”, “Frame39”, “Frame40”,
“Frame41”, “Frame42”, “Frame43”, “Frame44”, “Frame45”, “Frame46”, “Frame47”,
“Frame48”, “Frame49”
]

for attr in attrs:
    cmds.addAttr(obj, longName=attr, dataType="string", keyable=False)

# Set attribute values
cmds.setAttr(obj + ".RootFaceJoint", "DynamicHead", type="string")
cmds.setAttr(obj + ".Frame0", "Neutral", type="string")
cmds.setAttr(obj + ".Frame1", "ChinRaiserUpperLip", type="string")
cmds.setAttr(obj + ".Frame2", "ChinRaiser", type="string")
cmds.setAttr(obj + ".Frame3", "FlatPucker", type="string")
cmds.setAttr(obj + ".Frame4", "Funneler", type="string")
cmds.setAttr(obj + ".Frame5", "LowerLipSuck", type="string")
cmds.setAttr(obj + ".Frame6", "LipPresser", type="string")
cmds.setAttr(obj + ".Frame7", "LipsTogether", type="string")
cmds.setAttr(obj + ".Frame8", "MouthLeft", type="string")
cmds.setAttr(obj + ".Frame9", "MouthRight", type="string")
cmds.setAttr(obj + ".Frame10", "Pucker", type="string")
cmds.setAttr(obj + ".Frame11", "UpperLipSuck", type="string")
cmds.setAttr(obj + ".Frame12", "LeftCheekPuff", type="string")
cmds.setAttr(obj + ".Frame13", "LeftDimpler", type="string")
cmds.setAttr(obj + ".Frame14", "LeftLipCornerDown", type="string")
cmds.setAttr(obj + ".Frame15", "LeftLowerLipDepressor", type="string")
cmds.setAttr(obj + ".Frame16", "LeftLipCornerPuller", type="string")
cmds.setAttr(obj + ".Frame17", "LeftLipStretcher", type="string")
cmds.setAttr(obj + ".Frame18", "LeftUpperLipRaiser", type="string")
cmds.setAttr(obj + ".Frame19", "RightCheekPuff", type="string")
cmds.setAttr(obj + ".Frame20", "RightDimpler", type="string")
cmds.setAttr(obj + ".Frame21", "RightLipCornerDown", type="string")
cmds.setAttr(obj + ".Frame22", "RightLowerLipDepressor", type="string")
cmds.setAttr(obj + ".Frame23", "RightLipCornerPuller", type="string")
cmds.setAttr(obj + ".Frame24", "RightLipStretcher", type="string")
cmds.setAttr(obj + ".Frame25", "RightUpperLipRaiser", type="string")
cmds.setAttr(obj + ".Frame26", "JawDrop", type="string")
cmds.setAttr(obj + ".Frame27", "JawLeft", type="string")
cmds.setAttr(obj + ".Frame28", "JawRight", type="string")
cmds.setAttr(obj + ".Frame29", "Corrugator", type="string")
cmds.setAttr(obj + ".Frame30", "LeftBrowLowerer", type="string")
cmds.setAttr(obj + ".Frame31", "LeftOuterBrowRaiser", type="string")
cmds.setAttr(obj + ".Frame32", "LeftNoseWrinkler", type="string")
cmds.setAttr(obj + ".Frame33", "LeftInnerBrowRaiser", type="string")
cmds.setAttr(obj + ".Frame34", "RightBrowLowerer", type="string")
cmds.setAttr(obj + ".Frame35", "RightOuterBrowRaiser", type="string")
cmds.setAttr(obj + ".Frame36", "RightInnerBrowRaiser", type="string")
cmds.setAttr(obj + ".Frame37", "RightNoseWrinkler", type="string")
cmds.setAttr(obj + ".Frame38", "EyesLookDown", type="string")
cmds.setAttr(obj + ".Frame39", "EyesLookLeft", type="string")
cmds.setAttr(obj + ".Frame40", "EyesLookUp", type="string")
cmds.setAttr(obj + ".Frame41", "EyesLookRight", type="string")
cmds.setAttr(obj + ".Frame42", "LeftCheekRaiser", type="string")
cmds.setAttr(obj + ".Frame43", "LeftEyeClosed", type="string")
cmds.setAttr(obj + ".Frame44", "RightCheekRaiser", type="string")
cmds.setAttr(obj + ".Frame45", "RightEyeUpperLidRaiser", type="string")
cmds.setAttr(obj + ".Frame46", "RightEyeClosed", type="string")
cmds.setAttr(obj + ".Frame47", "TongueDown", type="string")
cmds.setAttr(obj + ".Frame48", "TongueOut", type="string")
cmds.setAttr(obj + ".Frame49", "TongueUp", type="string")


31f0db5bc8325a3418057f9218bb0fee
cfe6783280c0d4fd1c303e038ef3e96a

Expected behavior

Animation work as they are working in Maya

A private message is associated with this bug report

Turns out it was a problem with the Rig swapping out for another clean one fixed it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.