Applies To
ImportDelta command
Description
This example demonstrates how to use the ImportDelta command.
Code
/*
This example demonstrates how to import a model delta.
*/
NewScene(null, false);
CreatePrim("Sphere", "MeshSurface", null, null);
CreateModel(null, null, null, null);
var sPath = Application.InstallationPath(siFactoryPath) + "\\Data\\XSI_SAMPLES\\Models\\Test.emdl";
ConvertToRefModel ("Model", sPath);
SelectObj("Model.sphere", null, true);
Translate(null, -8.21651117203418, 4.54207454997213, -0.454207454997213, siRelative, siView, siObj, siXYZ,
null, null, null, null, null, null, null, null, null, 0);
var sPath2 = Application.InstallationPath(siFactoryPath) + "\\Deltas\\Test.delta";
ExportDelta("Model.Delta", sPath2);
var oDelta = ImportDelta(sPath2, "Model");
Logmessage( oDelta );Keywords
ImportDelta
Autodesk Softimage 2011