Difference between revisions of "Nif Optimization"
→Command Line Options: added the most important ones
imported>Amorilia m (→Using the Script from the Windows Explorer: improved formatting of thumbnails) |
imported>Amorilia (→Command Line Options: added the most important ones) |
||
Line 69: | Line 69: | ||
===Command Line Options=== | ===Command Line Options=== | ||
( | The most important command line options are listed here. For a complete list use the '-h' option. | ||
;-h | |||
:Show all command line options with brief help. | |||
;-r | |||
:Raise exception on errors during optimization. The desired behaviour is simply to print a warning on errors, but continue with the next file nevertheless. If you want the script to halt when it encounters an error, use this option. | |||
;-x ''blocktype'' | |||
:Exclude block type ''blocktype'' from optimization. For example, if you type | |||
python.exe Scripts\nifoptimize.py -x NiTriStrips C:\nifoptimize | |||
:then the script will not attempt to optimize NiTriStrips blocks (that is, removing duplicate vertices, restripifying, reskinning, and so on). You can accumulate this option to exclude multiple block types. | |||
python.exe Scripts\nifoptimize.py -x NiTriStrips -x NiMaterialProperty C:\nifoptimize | |||
:will prevent NiTriStrips to be optimized, and will also prevent duplicate NiMaterialProperty blocks to be merged. | |||
Good luck, and happy optimizing! | Good luck, and happy optimizing! |