gauranga108
12-08-2012, 01:53 AM
Hi,
I'm trying to write a little tool that will loop through my list of sets, select the verts from each set, mirror the selection(via someones else's tool n_mirrorComponents great tool) then put the mirrored selection into a new set and rename the set. But I keep getting this error on unindent.
# Error: line 1: unindent does not match any outer indentation level #
after entering my code
codeA
l_indexSets = [ 'l_index_01_set', 'l_index_02_set', 'l_index_03_set', 'l_index_04_set', 'l_index_05_set', 'l_index_06_set', 'l_index_07_set', 'l_index_08_set', 'l_index_09_set', 'l_index_10_set']
for i in range(len(l_indexSets)):
cmds.select(l_indexSets[i])
mc = n_mirrorComponents()
mc.doIt()
print mc.mirroredComponents
cmds.sets(n='r_'+l_indexSets[i])
if I just do
codeB
l_indexSets = [ 'l_index_01_set', 'l_index_02_set', 'l_index_03_set', 'l_index_04_set', 'l_index_05_set', 'l_index_06_set', 'l_index_07_set', 'l_index_08_set', 'l_index_09_set', 'l_index_10_set']
for i in range(len(l_indexSets)):
cmds.select(l_indexSets[i])
cmds.sets(n='r_'+l_indexSets[i])
it works and if I do
codeC
mc = n_mirrorComponents()
mc.doIt()
print mc.mirroredComponents
it works, so why the unindent error for codeA, which is just codeC under the for loop in cobeB?
Please help, thanks a lot for your time.
I'm trying to write a little tool that will loop through my list of sets, select the verts from each set, mirror the selection(via someones else's tool n_mirrorComponents great tool) then put the mirrored selection into a new set and rename the set. But I keep getting this error on unindent.
# Error: line 1: unindent does not match any outer indentation level #
after entering my code
codeA
l_indexSets = [ 'l_index_01_set', 'l_index_02_set', 'l_index_03_set', 'l_index_04_set', 'l_index_05_set', 'l_index_06_set', 'l_index_07_set', 'l_index_08_set', 'l_index_09_set', 'l_index_10_set']
for i in range(len(l_indexSets)):
cmds.select(l_indexSets[i])
mc = n_mirrorComponents()
mc.doIt()
print mc.mirroredComponents
cmds.sets(n='r_'+l_indexSets[i])
if I just do
codeB
l_indexSets = [ 'l_index_01_set', 'l_index_02_set', 'l_index_03_set', 'l_index_04_set', 'l_index_05_set', 'l_index_06_set', 'l_index_07_set', 'l_index_08_set', 'l_index_09_set', 'l_index_10_set']
for i in range(len(l_indexSets)):
cmds.select(l_indexSets[i])
cmds.sets(n='r_'+l_indexSets[i])
it works and if I do
codeC
mc = n_mirrorComponents()
mc.doIt()
print mc.mirroredComponents
it works, so why the unindent error for codeA, which is just codeC under the for loop in cobeB?
Please help, thanks a lot for your time.
