kythyria / payday2-model-tool

Diesel Model importer/exporter, with bones/rigging coming soon!
https://ci.appveyor.com/project/kythyria/payday2-model-tool/build/artifacts
GNU General Public License v3.0
19 stars 7 forks source link

CLI support? #9

Closed polarathene closed 4 years ago

polarathene commented 4 years ago

Is it possible to use this via a command-line interface? I would like to batch export to gltf.

kythyria commented 4 years ago

Yes. As of 1712da2d it knows about GLTF too. Run it with --help to see the options. For export, --load=foo.model --export=foo.gltf. Repeat as many times as you have models (up to the OS limit on command line lengths, anyway).

The model tool is quite slow to start, so repeating --load and --export is preferable to multiple invocations as far as speed goes.

ImUrX commented 4 years ago

thanks for solving this https://gfycat.com/RecklessFondFalcon