Hello guys, I'm having an hard time to write this code where I want to add new space in existing rig. For instance I want to add the constraint for the hand to the body, hips or head if the rig doesnt not have it. This first part of the script works well, I just dont know how to connect the attribute node between them as I do manually via Node Editor....
Here what I have so far.. In this first temp code, I first select an IK hand, I choose the attribute to add from the checkbox, and click on Male a Selection button in the GUI, and Ive simply added the new attribute to the hand. Then I simply select the objects where I want the hand to be connected / to follow, so for instance in the rig I select the Body, the hips and the head, and I click to New Selection. So far so good, but after this I dont know how to connect the right attributes to as I do in the node editor. I have created another button in the GUI, called Elem to Connect, which selected the 2 objects which attributes I want to connect respectively, the print shows me all the node name, but I dont know how to access there and connect. This should work with every rig, I'm testing with the famous BodyMech rig and the print in my case shows me the node that I need to connect, which are Head, Hips, Body, attribute defined with the first , and those ones specific for the rig which in this case are 'Upper_BodyW0', 'Spine_Pelvis_IKW1', 'Head_FKW2'... so I dont know how to let the script understand the dynamically right nodes to connect thanks in advance and sorry for the probably complicated explanation https://pastebin.com/embed_js/GKs0YAqf -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/78c6c5b2-878c-439c-bba6-149c51a70cf2n%40googlegroups.com.