53 import maya.cmds
as cmds
57 axes = [
'tx',
'tx',
'tz',
'rx',
'ry',
'rz']
59 cmds.setKeyframe (
'{}.{}'.format(name,a))
61 cmds.file (force=
True, newFile=
True)
62 cmds.currentUnit (linear=
'centimeter', angle=
'degree', time=
'film')
64 name =
'simpleEmitter'
67 cmds.loadPlugin (
'py1SimpleEmitter.py')
68 cmds.createNode (
'py1SimpleEmitter', name=name)
71 cmds.particle (name=
'particles')
72 cmds.connectDynamic (
'particles', em=name)
74 cmds.setAttr (
'{}.rate'.format(name), 200 )
75 cmds.setAttr (
'{}.speed'.format(name), 25 )
77 cmds.playbackOptions (minTime=0.00, maxTime=60.0)
79 cmds.play (wait=
True, forward=
True)
83 cmds.select (name, replace=
True)
87 cmds.move (-2.011944, 6.283524, -2.668834, relative=
True)
88 cmds.move (0, 0, 12.97635, relative=
True, localSpace=
True, worldSpaceDistance=
True)
89 cmds.rotate (0, -75.139762, 0, relative=
True, objectSpace=
True)
93 cmds.move (0, 0, -14.526107, relative=
True)
94 cmds.move (0, -8.130523, 0, relative=
True)
95 cmds.rotate (0, 0, 78.039751, relative=
True, objectSpace=
True)
96 cmds.rotate (0, 0, 53.86918, relative=
True, objectSpace=
True)
99 cmds.playbackOptions (minTime=0.00, maxTime=60.0)
101 cmds.play (wait=
True, forward=
True)