Forum: Autodesk Maya
Posted By: Joenutz
Post Time: 11 November 2017 at 09:39 PM
Text:
Hello, its my first day starting this CGSociety, I am hoping that someone who may help me with mel programming as i keep getting error for type for float []
here is the format I have on Maya 2018
C:/Program Files/Autodesk/Maya2018/scripts/AETemplates/AEfluidAttrTemplate.mel line 459: Cannot convert data of type int[] to type float[]. //
so in the templete file, there what it has said. not sure if I am having any issue with this.
// Description:
// Query the resolution attribute and stuff the current
// values into the intFieldGrp.
//
{
float $res[] = `getAttr $attr`;
intFieldGrp -e -v1 $res[0] -v2 $res[1] $field;
if( !$is2d ) {
intFieldGrp -e -v3 $res[2] $field;
}
}
Posted By: Joenutz
Post Time: 11 November 2017 at 09:39 PM
Text:
Hello, its my first day starting this CGSociety, I am hoping that someone who may help me with mel programming as i keep getting error for type for float []
here is the format I have on Maya 2018
C:/Program Files/Autodesk/Maya2018/scripts/AETemplates/AEfluidAttrTemplate.mel line 459: Cannot convert data of type int[] to type float[]. //
so in the templete file, there what it has said. not sure if I am having any issue with this.
// Description:
// Query the resolution attribute and stuff the current
// values into the intFieldGrp.
//
{
float $res[] = `getAttr $attr`;
intFieldGrp -e -v1 $res[0] -v2 $res[1] $field;
if( !$is2d ) {
intFieldGrp -e -v3 $res[2] $field;
}
}