Hi!
Hotkey sets are meant to give you the possibility to access different commands with a different key per set, but the commands still need to be unique.
Maya stores them by name so you could easy assign the script to another button in a new hotkey set.
So if you want a hotkey set for the boy and one for the girl, you would have to write selection scripts "Ass_Bone_Boy" which specifically selects the boys control and "Ass_Bone_Girl" which selects the ctrl of the girl, in order to not change the existing script from the other Hotkey set, but you then can assign both scripts to "F3" within their own hotkey sets. So you can press the same hotkey for the same selection in a different rig.
I hope this helps!
You didn't disturb me, no worries. But if you create two different scripts with different names, this shouldn't happen...
Could it be that you hit "Edit", instead of "New" when you created the second script?
I attatched a Video where I'm doing what you want to do here. Well, I used print statements instead of select because I didn't have any rigs loaded, but the process is exactly the same. Maybe you can find out what you are doing different?
I hope this helps!
Having both scripts in both sets is perfectly normal, it won't cause any problems with Maya, the only thing it makes slower is the start up of Maya because that's when all your custom scripts get loaded together with the preferences, but a short script like this only takes about 0.00001sec to load (probably even less) so you would have to have 10'000 scripts like this to even notice a second of delay when starting the program and it still wouldn't slow you down during work.
Can't find what you're looking for? Ask the community or share your knowledge.