morphine596
03-26-2010, 06:56 AM
Hey everyone
I was writing a python node to calculate the distance between 2 points. Well, that is done but I cannot seem to understand why it is crashing Maya.
I have attached my code as a txt file. Can anyone point out where I am going wrong ?
after Loading the plugin.. you can create 3 joints in the viewport.. with default naming.. and run the following lines to create the node and make some basic connections needed..
createNode stretchNode;
connectAttr -f joint1.message stretchNode1.joint1;
connectAttr -f joint2.message stretchNode1.joint2;
connectAttr -f joint3.message stretchNode1.joint3;
the script editor prints out the distance between joint1 and joint3 and so does the 'dist' attr on the stretchNode.. but it does not update with the change in position of the joints. something like the distanceBetween utility node. and if i change a value on the node like the 'onoff' attr to 0 or 1 then maya crashes.
I know there is something that I dont understand here. Can anybody help ?
Thanks a lot.
I was writing a python node to calculate the distance between 2 points. Well, that is done but I cannot seem to understand why it is crashing Maya.
I have attached my code as a txt file. Can anyone point out where I am going wrong ?
after Loading the plugin.. you can create 3 joints in the viewport.. with default naming.. and run the following lines to create the node and make some basic connections needed..
createNode stretchNode;
connectAttr -f joint1.message stretchNode1.joint1;
connectAttr -f joint2.message stretchNode1.joint2;
connectAttr -f joint3.message stretchNode1.joint3;
the script editor prints out the distance between joint1 and joint3 and so does the 'dist' attr on the stretchNode.. but it does not update with the change in position of the joints. something like the distanceBetween utility node. and if i change a value on the node like the 'onoff' attr to 0 or 1 then maya crashes.
I know there is something that I dont understand here. Can anybody help ?
Thanks a lot.
