find:
Code: Select all
// Read options from exporter window
//output directory
MGlobal::executeCommand("textField -query -text OutputDirectory",outputDir);
//neutral pose
int neutralPoseType;
MGlobal::executeCommand("radioButtonGrp -q -select NeutralPoseRadio",neutralPoseType);
switch (neutralPoseType)
{
case 1:
neutralPoseType = 0;
break;
case 2:
neutralPoseType = 1;
break;
case 3:
neutralPoseType = 2;
MGlobal::executeCommand("intField -q -v NeutralPoseFrame",neutralPoseFrame);
break;
}
//material options
//lighting offCode: Select all
// Read options from exporter window
//output directory
MGlobal::executeCommand("textField -query -text OutputDirectory",outputDir);
//neutral pose
int NeutralPoseType_loc;
MGlobal::executeCommand("radioButtonGrp -q -select NeutralPoseRadio", NeutralPoseType_loc);
switch ( NeutralPoseType_loc )
{
case 1:
neutralPoseType = 0;
break;
case 2:
neutralPoseType = 1;
break;
case 3:
neutralPoseType = 2;
{
int neutralPoseFrame_loc;
MGlobal::executeCommand("intField -q -v NeutralPoseFrame", neutralPoseFrame_loc);
neutralPoseFrame = neutralPoseFrame_loc;
}
break;
}1. int neutralPoseType; - This line declares a variable with the same name as in ParamList class definition. The local variable does override the one declared in class, that's why the value of radio-group for NeutralPose is not saved ( ie ignored ) to use it during animation export.
2. Strange behaviour in
Code: Select all
MGlobal::executeCommand("intField -q -v NeutralPoseFrame",neutralPoseFrame);