model_copy
Writes a model under a new name: its hierarchy (.mmh), mesh (.msh) and physics (.phy), and its farther versions (_2, _3) beside a _0, each naming its own new mesh file, optionally with another material (.mao) on every mesh node; and its textures under the new name, which the game draws a creature’s body with. For a creature or item of a mod’s own: an appearance row’s ModelName names it. Answers the files written and the name to give the row.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
name | string | yes | The game’s model, “cn_bdy_ogra_0”. |
as | string | yes | Its new name, “cn_bdy_rdoa_0”: letters, digits and _, ending _0 as the game’s nearest versions do. |
material | string | A material for every mesh node, “cn_bdy_rdoa” (a .mao, without the extension). Default: the model’s own. | |
to | string | yes | The folder to write into, a full path; made if missing. Never inside the game’s folder. |
Call it as model_copy over MCP, or from a shell as ghilana.exe --call model_copy '<arguments as JSON>'.