Guest User

Untitled

a guest
May 20th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. from pymel.core import *
  2. import random as random
  3.  
  4. for i,o in enumerate(ls(sl=True, type='transform')):
  5.     random.seed(i)
  6.     # change the numbers in the end to what ever you want to!!
  7.     o.rotateX.set(random.uniform(0,0))
  8.     o.rotateY.set(random.uniform(0,0))
  9.     o.rotateZ.set(random.uniform(0,0))
  10.    
  11.     o.translateX.set(random.uniform(0,0))
  12.     o.translateY.set(random.uniform(0,0))
  13.     o.translateZ.set(random.uniform(0,0))
  14.    
  15.     o.scaleX.set(random.uniform(0,0))
  16.     o.scaleY.set(random.uniform(0,0))
  17.     o.scaleZ.set(random.uniform(0,0))
Add Comment
Please, Sign In to add comment