First/most important: the line "number = 0" shouldn't be there. You're taking 'number' as an argument, then assigning it to 0, then adding 1 to it. That doesn't make a lot of sense -- first, don't take it as an argument if you're assigning a value to it right away. I'm assuming you want it to be 0 only at first, then add…
Hello. I'm in the works of making an auto rig script, and it requires the ability to make modules in a scene and show their info in the main UI. I already have that working for one single item, but when I try to add multiple, maya says the UI item is not unique. I've been looking for a solution to iterate the ID name of…