How to duplicate and rename joint chains?


Maya rigging question. I need to duplicate my joint chain to have FK and IK copies. Which means that every duplicated joint must have the correct name.

Let’s say I have: joint1_JNT, joint2_JNT, joint3_JNT

What I need is a copy: joint1_FK_JNT, joint2_FK_JNT, joint3_FK_JNT

if I do: cmds.duplicate(‘joint1_JNT’, rc=True, rr=True, n=joint1_FK_JNT )

I obviously get only the top joint of the duplicated chain with the required name, although I use the rename children flag. Any help?