you need to have import customClass?

On Mon, Feb 7, 2011 at 6:55 PM, Adam Mechtley <[email protected]>wrote:

> Maybe a dumb question, but is your customClass available in __main__?
>
>
> On Mon, Feb 7, 2011 at 8:22 PM, Ling <[email protected]> wrote:
>
>>
>> hey guys:
>>
>> have a problem with maya.mel.eval() today..
>>
>> cmd   = 'python(\"mayaString = customClass()\");'
>> cmd += 'python(\"mayaString.doit()\");'
>>
>> maya.mel.eval(cmd)
>>
>> # mayaString  is an instance of a custom class, and it will error out
>> like saying
>>
>> customClass is not defined... any work around to deal with this??
>>
>> thanks a lot in advance!!
>>
>> -ling
>>
>> --
>> http://groups.google.com/group/python_inside_maya
>>
>
>  --
> http://groups.google.com/group/python_inside_maya
>

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

Reply via email to