private void SplitFBX(string fileName) { Cursor = Cursors.WaitCursor; if (!File.Exists(fileName)) { AddMessageLine("File not found: " + fileName); Cursor = Cursors.Arrow; return; } ParseFBX fbx = new ParseFBX(this); fbx.LoadAsText(fileName); LoadModel(true, fileName, rotateX, rotateY, rotateZ); fbx.SaveIndividualFBXtakes(); Cursor = Cursors.Arrow; }
private void ProcessTypeOne(string rotateXdeg, string rotateYdeg, string rotateZdeg) { ParseFBX fbx = new ParseFBX(form); // Load the model text for splitting to separate files fbx.LoadAsText(fileFullPathToModel); // Load the model as a model form.LoadModel(true, fileFullPathToModel, rotateXdeg, rotateYdeg, rotateZdeg); if (form.IsAnimatedModel()) { // Must save the takes to individual files and // the file names must be consistent fbx.SaveIndividualFBXtakes(); // Now we can load each in turn to get the keyframe data ExportTakesToKeyframes(1, fbx, rotateXdeg, rotateYdeg, rotateZdeg); } }