This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
NewerOlder