Personal Blog, VFX, News, Discussion, Tools, Technology, Some Python & Mel Scripting, howto's and random stuff
Tuesday, July 19, 2011
Randomize selected vertex in Maya
def moveRandom(input):
import random
import maya.cmds as cmds
s = cmds.ls(sl=True, fl =True)
num = len(s)
for i in range(num):
cmds.select(s[i])
r = random.random()
h =r*input
cmds.move( h, h, h, s[i], relative=True )
Subscribe to:
Posts (Atom)
Integration/Tracking Demo Reel 2018 on Youtube
-
you can do this using string array global proc string[] myproc() { string $r[]; string $sel[] = `ls -sl`; float $pos[] = `x...
-
some handy Maya file commands some basic file and directory path operation commands How to query currently opened scene name? fil...