Skip to content

Instantly share code, notes, and snippets.

View lupin4's full-sized avatar
⚜️
Writing

David Clabaugh lupin4

⚜️
Writing
  • The Fantatstic Planet
  • Seattle
  • 15:44 (UTC -12:00)
View GitHub Profile
@lupin4
lupin4 / RandomRotate.py
Created February 8, 2017 09:56 — forked from protofALk/RandomRotate.py
Maya Python: Randomly Rotate a bunch of Objects
#rotate a bunch of object randomly here around y but can be changed easely below
import maya.cmds as cmds
import random as rand
def getSpecificObjectsIntoArray(objectName):
return cmds.ls(objectName)
def randomRotator(objectName):
for objects in getSpecificObjectsIntoArray(objectName):
#rotate objects around Y change here if you want other axises