parseAnimationCurveNodes method

dynamic parseAnimationCurveNodes()

Implementation

parseAnimationCurveNodes() {
  var rawCurveNodes = fbxTree.Objects["AnimationCurveNode"];

  var curveNodesMap = new Map();

  for (var nodeID in rawCurveNodes.keys) {
    var rawCurveNode = rawCurveNodes[nodeID];

    if (RegExp(r'S|R|T|DeformPercent').hasMatch(rawCurveNode["attrName"])) {
      var curveNode = {
        "id": rawCurveNode["id"],
        "attr": rawCurveNode["attrName"],
        "curves": {},
      };

      curveNodesMap[curveNode["id"]] = curveNode;
    }
  }

  return curveNodesMap;
}