Hi guys,
I’m having an strange error trying to build some chain_spring01 for the hair. I have a biped guide and I’m just adding a chain_spring01 to the fringe of my character, so I draw that component under the “neck_C0_head”. I build it and everything seems that is right. Then if save and I open the scene again, my rig is destroyed and the guide too. So I go to the script editor and I found this error:
// Error: setAttr “.omat” -type “matrix” 1 0 0 0 0 1 0 0 0 0 1 0 -nan(ind) -nan(ind) -nan(ind) 1; //
// Error: “/mypath/” line 51046.65: Invalid use of Maya object “ind”. //
*/mypath/ is the path of my file
And there is this two line for each joint of my spring_chain.
The reason because when I open my file the rig is destroyed is described here: https://forums.autodesk.com/t5/maya-forum/maya-2018-destroyed-all-incremental-saves-from-one-day/td-p/7886152
So, opening my file with a text editor and replacing the -nan(ind) with 0, it solves the problem, but as soon as I rebuilt the guide again, the problem appears.
So the problem seems to be how the mGear is building the composeMatrix nodes for each joint of the chain_spring01. At some point it have a calculation that ends in a -nan(not a number) - like you’ve performed an invalid operation on a float, for example the square root of a negative number, etc. And when you open the file again, Maya don’t know what to do and break the rig.
Did you have this problem before?
Thanks