Hi everyone, I try to get offset points of blendshape with maya API.
whis pymel is very simple with this line: ---------------------------------------------------------------------------------------------------------------------------------------------------------- pmc.PyNode(blendshapeName).inputTarget[0].inputTargetGroup[0].inputTargetItem[6000].inputPointsTarget.get() ---------------------------------------------------------------------------------------------------------------------------------------------------------- whis API: ---------------------------------------------------------------------------------------------------------------------------------------------------------- # For get MFnBlendShape selectionList = OpenMaya.MSelectionList() selectionList.add(blendShapeName) bsObject = OpenMaya.MObject() selectionList.getDependNode(0, bsObject) bsDependencyNode = OpenMaya.MFnDependencyNode(blendShapeObject) # For get weights datas attributeName = "inputTarget[0].inputTargetGroup[0].inputTargetItem[6000].inputPointsTarget" selectionList = OpenMaya.MSelectionList() wPlug = OpenMaya.MPlug() selectionList.add(blendShapeName + "." + attributeName) selectionList.getPlug(0, wPlug) ---------------------------------------------------------------------------------------------------------------------------------------------------------- But after is impossible to get value. I have one solution whis getSetAttrCmds. but it requires to parse string. there another solution? -- 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/a7016646-d5b7-4c24-9a76-677862d6f1f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
