i'm trying to select a bunch of cvs using a loop. the print statement i've commented out resolves to what i want, but how do i make that work within the select command?
CODE for pnts in range ( 0,16 ): #print 'wv01_ZZ_XX.cv[',(pnts+2),'][3]' cmds.select ( 'wv01_ZZ_XX.cv[(pnts+2)][3]', r=True )
From mayas point of view its faster if you first create the list of what you want to select and select all in one go without updating each loop (as it has some extra overhead, not much but it teaches you not to work on selection in vain)
thanks, but i'll be using this to select a large bunch of cvs and create a cluster, then select another bunch of cvs and create a cluster. i want to select a new group of points each time, hence r=True.
each loop does create one selection that i want
my problem is the syntax for the cv selection. even if i change it to add=True, it still won't work
all i'm trying to do now is figure out how to do the selection in python. i didn't throw in the cluster bit yet as i want to get selection working first.
Dont make selections, unless your target is to present the selection for the user. Dont try to use scripting like a sledgehammer its ugly and inefficent. If is must say its MUCH more ineffiecent that calling the mel command as a string. (which is your next question)