if youre in a python module, which is overriding mel procs, this is a
perfectly good reason to use python calls in the proc override
if this is the case, you you can import the module in the same call, to
throw to maya.mel to eval ~
cmd = 'python("import
sys;sys.path.append(\'/the/path/to/your/script\');import yourModule;
mayaString=customClass();mayaString.doit()");'
mm.eval(cmd)
On Tue, Feb 8, 2011 at 4:59 PM, Chad Dombrova <[email protected]> wrote:
> >
> > cmd = 'python(\"mayaString = customClass()\");'
> > cmd += 'python(\"mayaString.doit()\");'
> >
> > maya.mel.eval(cmd)
>
> wait, i don't get it. why are you using maya.mel.eval to run python code?
>
> -chad
>
>
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
http://groups.google.com/group/python_inside_maya