Problems with Fluid with mel programming.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  11 November 2017
Problems with Fluid with mel programming.

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;
}
}
 
  11 November 2017
change:
float $res[] = `getAttr $attr`;
to:
int $res[] = `getAttr $attr`;

I think the return value from getAttr for int triple compounds may have been float in past versions of Maya, so now that it works properly the old workaround is showing as an error.
 
  11 November 2017
Hello,I have the same problem, but even changing the value from float to int, but the error message still appears
It appears as soon as I create a "3D Container".

{
int $res[] = `getAttr $attr`;

intFieldGrp -e -v1 $res[0] -v2 $res[1] $field;

if( !$is2d ) {
intFieldGrp -e -v3 $res[2] $field;
}
}
 
  11 November 2017
You need to restart Maya after changing that file to see the error go away. It is a harmless error though, and does not affect the functioning of the fluid.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:12 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.