holycause
12-10-2010, 08:06 AM
hi guys.
I've a question regarding the blendShape.
I try to remove some of my blendshape's targets but it doesn't seems to work.
I tried it like this:
cnt = cmds.blendShape('blendShape1',query=True,wc=True) tmpList = []
for i in range(cnt):
ttList =[]
ttList.append(cmds.blendShape('blendShape1',query=True,t=True)[i])
ttList.append(cmds.blendShape('blendShape1',query=True,w=True)[i])
tmpList.append(ttList)
print tmpList
for b in tmpList:
cmds.blendShape('blendShape1',edit=True,remove=True,g='{0}'.format(b[0]))
any ideas?
I've a question regarding the blendShape.
I try to remove some of my blendshape's targets but it doesn't seems to work.
I tried it like this:
cnt = cmds.blendShape('blendShape1',query=True,wc=True) tmpList = []
for i in range(cnt):
ttList =[]
ttList.append(cmds.blendShape('blendShape1',query=True,t=True)[i])
ttList.append(cmds.blendShape('blendShape1',query=True,w=True)[i])
tmpList.append(ttList)
print tmpList
for b in tmpList:
cmds.blendShape('blendShape1',edit=True,remove=True,g='{0}'.format(b[0]))
any ideas?
