Exemple #1
0
def create_tire(name, width, radius, tx, ty, tz):
    # Create a cylinder that represents a tire.
    # Return the transform node name.
    tire = cmds.polyCylinder(h=width, r=radius, ax=(0,0,1), sc=True, name=name)
    spike.addSpikes(tires[0])
    cmds.setAttr("{0}.translate".format(tire[0]), tx, ty, tz)
    return tire[0]
Exemple #2
0
def create_body(length=2, width=1):
    # Create a plane that represents the car body.
    # Return the transform node name.
    body = cmds.polyPlane(w=length, h=width, name="body")
    spike.addSpikes(body[0])
    return body[0]