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 <gannboonb...@gmail.com> 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