the first, non-keyword argument in the sets command is the selection list
you wnat to remove
selection = cmds.ls(sl = True)
sets = cmds.ls('*_set*')
for s in sets:
cmds.sets(selection, remove = s)
On Fri, Oct 19, 2012 at 8:53 AM, Daz <[email protected]> wrote:
> Heya
>
> Interesting. But that deletes all my sets. I only want to remove selected
> objects from all _set quick selection sets...
>
>
> Thanks for idea tho ! Good to know I con use delete this way heh.
>
> On Friday, 19 October 2012 16:40:42 UTC+1, Ali
>
> On Friday, 19 October 2012 16:40:42 UTC+1, Ali Khanbabaei wrote:
>
>> use this command :
>> cmds.delete(set)
>>
>>>
>>>
>>> --
> 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