Load (Delta)
Description
Loads a Delta (all modifications on the reference model) from the specified file.
C# Syntax
Delta.Load( String in_bstrFile );Examples
JScript Example
/* This example demonstrates how to load a delta. */ NewScene(null, false); // Create a reference model from a cube var oRoot = Application.ActiveProject.ActiveScene.Root; var oCube = oRoot.AddGeometry("Cube", "MeshSurface"); var emdlFileRefModel = XSIUtils.BuildPath(Application.InstallationPath(siProjectPath), "Models", "MyModel.emdl"); CreateModelAndConvertToRef(oCube, emdlFileRefModel ); // Create a new material and also generate the delta ApplyShader(null, "", null, "", siLetLocalMaterialsOverlap); // Get the Delta object var oDelta = Dictionary.GetObject("Model.Delta"); // File to save delta var deltaFile = XSIUtils.BuildPath(Application.InstallationPath(siProjectPath) + "Deltas", "MyDelta.delta"); oDelta.Save(deltaFile); // Load the delta oDelta.Load(deltaFile); // To apply the modification oDelta.Apply();
See Also
Autodesk Softimage v7.5