Message 1 of 2

Not applicable
06-19-2017
12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI, all.
I am developing an export plugin
So, I need to get the blend shape group, but I couldn't manage it.
MFnBlendShapeDeformer bsFn(bs); auto attr = bsFn.attribute("targetDirectory"); if (!attr.isNull()) { MFnCompoundAttribute compAttr(attr); for (int c = 0; c < compAttr.numChildren(); c++) { auto child = compAttr.child(c); if (child.apiType() == MFn::kTypedAttribute) { //?? } else if (child.apiType() == MFn::kNumericAttribute) { //?? } else { //?? } } }
I understand that kTypedAttribute and kNumericAttribute can be obtained with such code, but I can not get the value.
I want to get
a) the weight of the group
b) the parent of the group
c) child of the group
>blendshape.ma
setAttr ".tgdt[0].cid" -type "Int32Array" 2 -1 2 ; <-
setAttr ".tgdt[1].cid" -type "Int32Array" 2 0 1 ; <-
setAttr ".tgdt[1].dtn" -type "string" "Group 1";
setAttr -av ".tgdt[1].dwgh" 0.30000001192092896; <-
please give me some help.
Solved! Go to Solution.