I'm coding a little script which rotate randomly the selected objects. It use a loop, and for eahc object apply a random rotation.
But I don't want maya to add each rotations made by the loop. I want it register only one action named for instance "Random rotations". Undo it would replace each objects in the old rotation position.