Hi wizards!
Iβm quite new to python
but I am fumbling along the way. Iβve been searching endlessly to find the solution to this problem with no avail. Hopefully this is a quick fix!
I simply want to select all of the .u[li] or .v[*] isoparm of a NURB and canβt seem to get it working correctly. The * asterix does not seem to give me the right output, it only select the beginning and ending of the isoparm and spits out something like .u[0:3] and I just canβt seem to expand that out properly either.
[/li]
So far my coding looks like this (ugly coding butβ¦somewhat works):
selection = cmds.ls(selection = True, fl=1, sl=1)
for object in selection:
cmds.select(object + β.v[0]β, object + β.v[1]β, object + β.v[2]β, object + β.v[3]β, object + β.v[4]β, object + β.v[5]β, object + β.v[6]β, object + β.v[7]β, object + β.v[8]β, object + β.v[9]β, object + β.v[10]β, object + β.v[11]β, object + β.v[12]β, object + β.v[13]β, object + β.v[14]β, object + β.v[15]β, object + β.v[16]β, object + β.v[17]β, object + β.v[18]β, object + β.v[19]β, object + β.v[20]β, object + β.v[21]β, object + β.v[22]β, object + β.v[23]β, object + β.v[24]β, object + β.v[25]β,)
cmds.select section looks very very messy I know >.<; but it is the only way it can get it to work so far, but Iβm sure there has to be an easier way to select the .u[] or .v[] that Iβve missed.
Any help will be super grateful!
Thank you!