[Maya-Python] create passive collider

619 views
Skip to first unread message

jonmi...@gmail.com

unread,
May 20, 2010, 7:05:39 PM5/20/10
to python_inside_maya
I need to create a collision with a container object and nParticles
how do i use this :
makeCollideNCloth;
in python? i tried using a mel wrapper but it keeps coming up saying
no module for mel
also im not too sure how to use mel commands in python
the cmds.collision() doesn't work either

if anyone can help would be great

--
http://groups.google.com/group/python_inside_maya

matthew evans

unread,
May 22, 2010, 12:03:25 PM5/22/10
to python_in...@googlegroups.com
hey jon, try importing the mel commands into maya :

import maya.mel as mel
makecolide="makeCollideNCloth;"
mel.eval(makecolide)


the eval command uses the actual mel commands in python but you need to create them as a string first, hope this helps

--
http://groups.google.com/group/python_inside_maya

matthew evans

unread,
May 22, 2010, 12:04:14 PM5/22/10
to python_in...@googlegroups.com
sorry miss typed:
was sposed to say
"hey jon, try importing the mel commands into PYTHON :"

:)
Reply all
Reply to author
Forward
0 new messages