Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

API usage

Hanabishi edited this page Jan 17, 2020 · 3 revisions

The API is simple.

Load desired model from file using MDX class instance:

using FastMDX;
...
var mdx = new MDX("footman.mdx");

Then you can access model's properties. For example, let's change a texture path:

Console.WriteLine(mdx.Textures[0].Name);
// Textures\Footman.blp

mdx.Textures[0].Name = "Textures\\Footman1.blp";

And now save the changes:

mdx.SaveTo("footman.new.mdx");

Result:

Result


There are plenty of properties and subproperties in the MDX file.

Sorry for the lack of documentation. For now you can use IntelliSense tips to navigate.

Clone this wiki locally