No, sadly the only thing I get is "syntax error" and yes in this case
mel.eval would be by far the most convenient way.


On Fri, Dec 23, 2011 at 1:52 PM, Justin Israel <[email protected]>wrote:

> Are you able to post the specific error? Did it give you any more
> information that what you provided?
> Also, is there any reason you cant do it from python?
>
> On Dec 22, 2011, at 2:17 PM, Sebastian Schoellhammer wrote:
>
> Hello,
>
> I have a weird problem with mel.eval
>
> import maya.mel as mel
> mel.eval('setAttr -s 2 "polySphere2_subdivisionsAxis.ktv[0:1]" 1 18 5 18;')
> mel.eval('setAttr "polySphere2_subdivisionsAxis.i" 5;')
>
> The first one is giving me a syntax error, the second works fine.
> Both work when I copy the exact string into a mel console.
> Is there some funky character conversion going on?
>
> Hum, any hints are greatly appreciated!
>
> Thanks,
> Seb
>
>
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
>
>  --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>



-- 
Sebastian Schoellhammer

Sr. Technical Artist
Square Enix LTD
www.square-enix.com

-- 
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