pm.event( 'myCloud', proc='myProc' ) # Call the MEL proc "myProc(name, id, name) each time a particle # of myCloud collides with anything.
|
import maya.mel as mel #Just define the function to take arguments etc however the pm.event function is designed to take mel.eval('global proc test(){print "test";}') mel.eval('test()') |