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


#1

Hi
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.

Thanks


#2

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

from maya import cmds

for i in range(1,1001):
cmds.unfold()


#3

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


#4

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


#5

Oh ya. What hominid says.