aimConstraint command
- Get link
- X
- Other Apps
def _sample_aimConstraint():
import random;
import maya.cmds as mc;
sL1 = mc.spaceLocator()[0];
sL2 = mc.spaceLocator()[0];
sL3 = mc.spaceLocator()[0];
mc.xform(sL2,ws=1,t=(random.random()*10,random.random()*10,random.random()*10));
mc.xform(sL3,ws=1,t=(random.random()*10,random.random()*10,random.random()*10));
mc.aimConstraint(sL2,sL1,aim=[1,0,0],u=[0,1,0],wut="object",wuo=sL3);
- Get link
- X
- Other Apps
Comments
Post a Comment