Difference between revisions of "Nif Optimization"
added razorwing's instructions on how to configure the context menu command (see talk page for reference)
imported>Amorilia m (added tag to indicate that this article is bylined) |
imported>Amorilia (added razorwing's instructions on how to configure the context menu command (see talk page for reference)) |
||
Line 40: | Line 40: | ||
==Using the Script from the Windows Explorer== | ==Using the Script from the Windows Explorer== | ||
===Running the Script=== | |||
[[Image:Nifoptimize1.png|thumb]] | [[Image:Nifoptimize1.png|thumb]] | ||
For simple usage you can use it directly from the Windows explorer. | For simple usage you can use it directly from the Windows explorer. | ||
Line 48: | Line 51: | ||
*Test your optimized nif file with nifskope and in the game to make sure that nothing has been lost. If the script makes a visual change to your nif file, report it on the [http://niftools.sourceforge.net/forum/ niftools forum]. | *Test your optimized nif file with nifskope and in the game to make sure that nothing has been lost. If the script makes a visual change to your nif file, report it on the [http://niftools.sourceforge.net/forum/ niftools forum]. | ||
[[Image:Nifoptimize2.png|thumb|center]] | [[Image:Nifoptimize2.png|thumb|center]] | ||
===Configuration=== | |||
Below, in the section on command line options, you can read all about how to tweak various settings in the script if you run it from the command line. You can also configure the script as run from the context menu. | |||
Open a folder, and go to "Tools > Folder Options...". On the File Types tab, scroll down to the NIF entry and click on the Advanced button. Select "Optimize with PyFFI" and click the "Edit..." button. | |||
In the text box under "Application used to perform action", you see this text string: | |||
"C:\Python25\python.exe" "C:\Python25\Scripts\nifoptimize.py" --pause "%1" | |||
You can add new options between <tt>--pause</tt> and <tt>"%1"</tt>, for instance: | |||
"C:\Python25\python.exe" "C:\Python25\Scripts\nifoptimize.py" --pause -x NiMaterialProperty "%1" | |||
if you do not want the script to optimize NiMaterialProperty blocks when you run it from the context menu. | |||
==Using the Script from the Command Prompt== | ==Using the Script from the Command Prompt== |