Is there any way to repeat last command n number of times?


I know i can press g to repeat last command but is there anyway to repeat it say 1000 time automatically?

I need it as im unwrapping a UV and using the unfold command to get a clean unwrap, but now my arms really getting tired, i would honestly rather the software do it on its own.



Just change the #1001, to how many iterations u think u need.

from maya import cmds

for i in range(1,1001):


Build a Python script. Get all your meshes as a list, iterate through this list applying unfold() command.


Why not just turn up the unfold iterations in the unfold UV options dialog. That’s why it’s there.


Oh ya. What hominid says.