public FbxAnimCurveNode GetCurveNode(FbxAnimStack pAnimStack, bool pCreate = false) { if (pAnimStack == null) { return(null); } var currentLayers = new HashSet <FbxAnimLayer>(pAnimStack.GetSrcObjects <FbxAnimLayer>()); return((FbxAnimCurveNode)SrcObjects.FirstOrDefault(x => { if (!(x is FbxAnimCurveNode)) { return false; } var acn = (FbxAnimCurveNode)x; var layers = new HashSet <FbxAnimLayer>(acn.GetDstObjects <FbxAnimLayer>()); return layers.Intersect(currentLayers).Any(); })); }
protected void PrintFbxAnimStack(FbxAnimStack obj, TextWriter writer) { _PrintFbxAnimStack(obj, writer); }
public virtual void Visit(FbxAnimStack obj) { }
protected void AcceptAnimStack(FbxAnimStack obj, ISet <object> visitedObjects) { AcceptCollection(obj, visitedObjects); Visit(obj); }
protected void _AcceptFbxAnimStack(FbxAnimStack obj, ISet <object> visitedObjects) { }
public void SetCurrentAnimationStack(FbxAnimStack pAnimStack) { CurrentAnimationStack = pAnimStack; }
protected void AcceptFbxAnimStack(FbxAnimStack obj, ISet <object> visitedObjects = null) { Visit(obj); _AcceptFbxAnimStack(obj, visitedObjects); }
protected void _PrintFbxAnimStack(FbxAnimStack obj, TextWriter writer) { // TODO: GetLocalTimeSpan // TODO: GetReferenceTimeSpan }