Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # maya_particles.py
- import maya.cmds as cmds
- import gen_points
- def makeCubic(num, side):
- points = gen_points.cubic(num, side)
- cmds.nParticle(p=points)
- def makeSphere (num, radius):
- points = gen_points.sphere(num, radius)
- cmds.nParticle(p=points)
- def makeCylinder(num, radius, height):
- points = gen_points.cylinder(num, radius, height)
- cmds.nParticle(p=points)
- def makeCone(num, radius, height):
- points = gen_points.cone(num, radius, height)
- cmds.nParticle(p=points)
- if __name__=='__main__':
- num = 1000
- side = 5
- radius = 12
- height = 24
- makeCubic(num, side)
- makeSphere (num, radius)
- makeCylinder(num, radius, height)
- makeCone(num, radius, height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement