model_export
Writes a model as glTF 2.0 (
Arguments
| Name | Type | Required | What |
|---|---|---|---|
name | string | yes | The model’s hierarchy, “cn_bdy_ogra_0.mmh” (the extension may be left off). resources with type mmh finds one; it names its mesh file (.msh) itself. |
source | string | Which copy of the .mmh, by its source (“core”, “addin:…”). Default: the copy the game takes. Its mesh file is always the game’s copy. | |
archive | string | Which copy of the .mmh, by its archive’s path. | |
to | string | yes | The folder to write into, a full path; made if missing. Never inside the game’s folder. |
Call it as model_export over MCP, or from a shell as ghilana.exe --call model_export '<arguments as JSON>'.