Hello Everyone, 
I went back to my attempt on adding new attribute to every rig, like I want 
hand can be constraint to the head and / or to the Body, Hips, etc ...
If I add al the attributes that I want and I go to the other hand or leg 
etc and add new attributes, everything's fine, 
the problem happens when I go back to the first hand for instance, and try 
to add new attribute, then the script fails because it picks the wrong 
elements to perform the constraints ...

I tried not to use global variables but I cant figure out how to fix it. I 
would like to have this little code/snippet that once I add the new 
attribute and create the constraint etc, it would  clear all the variables 
or what it needs, in order to avoid conflict 
 
Here's the script which create a GUI with a text field where to enter name 
of the attribute we want to add and after we select an object (an hand for 
instance), it add the name etc, 
with the second button we select what it need to follow....

https://pastebin.com/raw/cdqeJCx0

thanks in advance 
Flys

-- 
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/8b60eb30-deee-42ec-9ccc-05e5caf2213cn%40googlegroups.com.

Reply via email to