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?