top of page
#maya/scripts/nParticles.py
import gen_points1
import math
import maya.cmds as cmds
def writeCubic(num, side):
data = gen_points1.cubic(num, side)
cmds.nParticle(p=data)
def writeBox(num, width, height, depth):
data = gen_points1.box(num, width, height, depth)
cmds.nParticle(p=data)
def writeSpherical(num, radius):
data = gen_points1.spherical(num, radius)
cmds.nParticle(p=data)
def writeDisk(num, radius):
data = gen_points1.disk(num, radius)
cmds.nParticle(p=data)
def writeCylinder(num, radius, height):
data = gen_points1.cylinder(num, radius, height)
cmds.nParticle(p=data)
def writeCone(num, radius, height):
data = gen_points1.cone(num, radius, height)
cmds.nParticle(p=data)
bottom of page