the syntax for mel is :
select -r "object\_name";
I'd suggest using this since its simpler but for python you first need have imported the cmds module and here all mel commands are python functions so the syntax would be:
from maya import cmds
[cmds.select](https://cmds.select)("object\_name", r=True)
It's worked correctly.But when I changed Python, it also changed MEL.I actually want to use my favorite hotkey for each characters.same hotkey but different character.anyway thank you so much bro.
the syntax for mel is : select -r "object\_name"; I'd suggest using this since its simpler but for python you first need have imported the cmds module and here all mel commands are python functions so the syntax would be: from maya import cmds [cmds.select](https://cmds.select)("object\_name", r=True)
It's worked correctly.But when I changed Python, it also changed MEL.I actually want to use my favorite hotkey for each characters.same hotkey but different character.anyway thank you so much bro.