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