Main
|
Resume
|
Showreel
|
Blog
|
Script
|
Contact
connexion
go to footer
expand all
|
collapse all
languages
class
All
JScript|XSI
Python|XSI
JScript|WEB
Python|Maya
All
Memo
learning
DDD
php
tool
keyboard tooltips
rig
manage Set
- tool - felixlecha
#---------------------------------------------------------------------- def manageSet( mode ): ''' Manage Set Select object to manage and select last the set ''' # Get Selection and filter cSel = mc.ls(sl= True) set= cSel[-1] # Test if set is a set items= cSel[0:-1] if mode == 'REMOVE': # Remove object from a set mc.sets( items, rm= set ) elif mode == 'ADD': # Add to Set mc.sets( items, fe= set ) manageSet( mode= 'ADD' ) manageSet( mode= 'REMOVE' )