yeah, basically you have to convert whatever you want to run in MEL  
into an "evalable" string.  pymel has some features to make calling  
mel procs from python more like calling a native python function,  
handling all the string processing for you:  
http://pymel.googlecode.com/svn/docs/generated/classes/pymel.core.language/pymel.core.language.Mel.html#pymel.Mel

-chad



On Aug 18, 2009, at 9:22 AM, Paul Molodowitch wrote:

>
> import maya.mel
> maya.mel.eval('$foo = 3; print $foo')
>
> On Tue, Aug 18, 2009 at 4:49 AM, Jakob Kousholt<[email protected]>  
> wrote:
>> I'm a newcomer to python, so please bare with me if this is a silly
>> question, but as the topic says; how do you use mel procedures from  
>> a python
>> script?
>>
>> Cheers, Jake
>>
>> --
>> Jakob Kousholt
>> [email protected]
>> 40 33 68 39
>>
>>>
>>
>
> >


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

Reply via email to