Thank you so much for the reply. It looks like the syntax error i've been 
getting is indeed the python's script inability to read a mel variable but 
the problem with your solution is now it take  +$refrname+ literally, 
rather than the value in it but at least now I'm able to isolate the 
problem and know what I did wrong. Thanks alot ! 
 

On Saturday, October 13, 2012 9:02:56 PM UTC-7, Justin Israel wrote:

> You could just concatenate the strings to make is a literal string: 
>
> python("import ZebraRig\nZebraRig.doLeftSwitch('" + $refname + "')"); 
>
> Note the single quotes to wrap around the literal value of $refname 
>
>
>
> On Oct 13, 2012, at 8:13 PM, Bay <gannbo...@gmail.com <javascript:>> 
> wrote: 
>
> > python("import ZebraRig\nZebraRig.doLeftSwitch($refname)"); 
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to