Maya导出FBX报错 ‘Unable to find the bind pose for ’
//////MEL/////
global proc asReBuildDagPose ()
{
string $tempString[];
//if (!`asConfirmIfNotInBuildPose`)
// return;
$tempString= `ls -type dagPose`;
for ($i=0;$i<size($tempString);$i++)
if (!`gmatch $tempString[$i] "*uildPose*"`)
delete $tempString[$i];
select -hi Root_M;
if (`objExists |root`) //Unreal Skeleton
select -hi |root;
select -d `ls -sl "*Constraint*"`;
select -add DeformationSystem;//fbx exporter preffers this to be included
string $bindPoseNode=`dagPose -save -selection -bindPose -name bindPose`;
select -cl;
print ("// dagPose node: \""+$bindPoseNode+"\" created.\n");
}
asReBuildDagPose