most probably ctrlselected is list <http://effbot.org/zone/python-list.htm>
so thats why you getting that error. if you using cmds.ls(sl=True) to get
ctrlselected then ls will always return a list ie :

import maya.cmds as cmds
cmds.ls(sl=True)
# Result: [u'pSphere1'] #

so a for loop will help you in this case :)

On Fri, Aug 10, 2012 at 10:52 AM, Florian Croquet <[email protected]>wrote:

> Thank you Kurian,
>
> Unfortunately, I forgot my file at work so I will try monday, I hope it
> will work
>
> PS: dear admin, sorry for my triple post but I had an issue with chrome :/
>
>  --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>



-- 
--:: Kurian ::--

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