Ya this was answered for you already here:

https://groups.google.com/group/python_inside_maya/browse_thread/thread/7f2de8667bea086e/586a009ad018b291#586a009ad018b291


On Tue, Jun 12, 2012 at 3:54 PM, pipo pescattore <[email protected]>wrote:

> Sorry if I am re posting but I had a problem with my email, here is my
> problem
>
> Hello, I have a locator which I get his localPosition by using this
> command=
> selX = cmds.getAttr(locator+'.localPositionX')
>
>
> the thing is that I need to pass that parameter to this function that only
> accepts  floats
>
>         cmds.polyCreateFacet( p=[(0,0,0), (2,1,2), (2,2,3)] )
>
> I tried doing this
>
>         cmds.polyCreateFacet( p=[(selX,0,0), (2,1,2), (2,2,3)] )
> but did not work
>
> how can I convert the string value and pass that parameter to the
> polyCreateFacet input?
>
> Thanks
>
> --
> 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

Reply via email to