Hello everyone:
I am writing a blendShape tool.
I have a tough problem that bothers me for a long time.
- First, I add a new target, called D, to the blendShape node.
#add target
cmds.blendShape('blendShape1',e=1,t=('baseMesh',3,'D',1))
- Then, using the maya's removeMultiInstance command, remove the target
D.
#remove target
cmds.removeMultiInstance("%s.weight[%s]" % ('blendShape1','3'), b=True)
cmds.removeMultiInstance("%s.inputTarget[0].inputTargetGroup[%s]" %
('blendShape1','3'), b=True)
- Finally, when I add target D again to the blendShape node, the
blendShape's weight attribute name, sometimes right, sometimes wrong.
#add target
cmds.blendShape('blendShape1',e=1,t=('baseMesh',3,'D',1))
*right:*
*wrong:*
<https://lh3.googleusercontent.com/-rW9uVGRoq_0/WXcCRPU3HhI/AAAAAAAAAF0/_8jyVyt0HTUnqaxs-WNYgEEsyxaYQ_j8ACLcBGAs/s1600/TIM%25E5%259B%25BE%25E7%2589%258720170725161516.png>
How can I operate to avoid the wrong results?
Thank you!!!!
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/e83f45d2-71fb-48b0-b737-9f9812f20ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.