View Full Version : Make Selected Curves Dynamic (Python)

10 October 2011, 07:28 PM
Hey everyone,

I was wondering how you would do the same thing in MEL using Python.

I want to make my curve dynamics, and usually I would just do makeCurvesDynamicHairs, but is there a Python command to do this. I want my end result to be a dynamic joint chain.

I hope this is enough information, let me know if you want anymore!


10 October 2011, 08:46 PM
whatIs makeCurvesDynamicHairs;tells us that makeCurvesDynamicHairs is a MEL script, which means it's pretty unlikely there is a python equivalent. Opening up that script and seeing how much MEL code there is inside it only reinforces this doubt.
You can still call MEL scripts inside python, you don't have to have pure python for everything.
import maya.mel as mel
mel.eval('makeCurvesDynamicHairs %d %d %d' % (attach, snap, match)):nathaN

10 October 2011, 10:07 PM
I did not know that. Thank you that.


CGTalk Moderation
10 October 2011, 10:07 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.