parseAnimationCurveNodes method

dynamic parseAnimationCurveNodes()

Implementation

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

  var curveNodesMap = {};

  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;
}