In my previous post, I asked for help understanding how to connect 
different nodes from different elements all at once. I managed to work 
around the problem by connecting the attributes one by one, which seemed to 
work.

Now, I have another, easier problem for experienced Python users. Let me 
try to explain.

I am trying to write a code that adds a new space attribute to the arm of a 
rig, connecting to the Head, Hips, and Body if they don't have this option. 
If I add one space option to the right arm at a time, the script works 
well. However, if I add a space to the other arm and then go back to the 
first arm to add another space, the script fails.

I think it may be a matter of some global variable, but even when I try to 
update it, I end up breaking the script. If you have the time, I would 
appreciate it if you could take a look at my code. If you want to test it, 
you can probably use any Maya rig.

Thanks in advance
Filippo

https://pastebin.com/embed_js/GaudeMpR

-- 
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/c92c073f-47d5-4d5a-93c6-06171bf81c5cn%40googlegroups.com.

Reply via email to