python - Selecting all items individually in a list -


i wondering if possible re-select each , every item in rslist? citing simple example below looking @ hundreds of items in scene , hence below simplest form of coding able come base on limited knowledge of python

rslist = cmds.ls(type='resshdrsrf') # output: [u'pcube1_genshdr', u'pplane1_genshdr', u'psphere1_genshdr'] 

i tried using following cmds.select taking last selection (in memory) - psphere1_genshdr account while forgetting other 2 though 3 items seen selected in ui.

tried using list , append, not seems working , selection remains same...

list = [] item in rslist:     list.append(item)     cmds.select(items)     #cmds.select(list) 

as such, possible me perform cmds.select on each of item individually?

if trying select each item:

import pymel.core pm in pm.ls(sl=true):     i.select() 

but should have no effect in rendering


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -