PDA

View Full Version : Make Selected Curves Dynamic (Python)


mccollom73
10-19-2011, 08: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!

Thanks!
Josh

NaughtyNathan
10-19-2011, 09:46 PM
executing:
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

mccollom73
10-19-2011, 11:07 PM
I did not know that. Thank you that.

Josh

CGTalk Moderation
10-19-2011, 11: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.