User:Fiskie/AutoHLMV

From Team Fortress Wiki
< User:Fiskie
Revision as of 15:18, 18 March 2012 by Fiskie (talk | contribs)
Jump to: navigation, search

AutoHLMV is my C++ tool for automation of screenshots of painted models inside HLMV into Photoshop, where they can simply be trimmed, given alpha and exported using the Scripts -> Export Layers as Files tool.

Current Features

  • Automated Registry editing for values
  • Automated model opening - do not have to open it beforehand
  • FOV Setting

Requirements

  • Preferably Photoshop CS5. CS4 and CS3 works, but due to the nature of C++ FindWindow it's difficult to regex with, so other versions with different window titles may not work. The current titles are supported:
    • Adobe Photoshop CS5 Extended
    • Adobe Photoshop CS5.5
    • Adobe Photoshop CS5
    • Adobe Photoshop CS4 Extended
    • Adobe Photoshop CS4
    • Adobe Photoshop CS3

Initial Setup

To use the script, make sure all the values in the autohlmv.ini file are correct. If there is only one VMT for a model, leave targetTex2 blank or comment it with a #.

You can comment out unwanted paints with a #, too.

Window States

You must:

  • Have the Source SDK window open. HLMV will be opened by the script.
  • Have Photoshop open with no images open inside of it, so the script can find the application.

Download

Download Page

To-do

  • 3D feature
  • Automating layer names
  • Supporting team models with a different extra base texture, e.g. Vintage Tyrolean

Changelog

Version 0.2

  • Added a "speed" setting to the INI.
  • Should not be taking screenshots in the wrong places anymore.

Version 0.1

  • Initial release.

Bugs

  • 3D mode has not been implemented, don't try this.
  • If you terminate AutoHLMV before it finishes, you will have to clear the $color2 variable from the VMT as it won't remove itself.