Team Fortress Wiki:3D Models

From Team Fortress Wiki
Revision as of 21:54, 1 September 2011 by Moussekateer (talk | contribs)
Jump to: navigation, search

Requirements

Initial setup

  • Install Python 2.6 and the required libraries (SendKeys, PIL and pywin32).
  • Navigate to \Python26\Lib\site-packages and replace SendKeys.py with the modified version linked above.
  • Download and save the automaton scripts to an easily accessible folder.

Setting up automate.py

  • Open up HLMV and maximise it.
  • Take a screenshot and paste it into an image viewer such as paint.NET or Photoshop.
  • Take note of the following pixel coordinates for your screen size.
    • SDKLauncherStartingPoint is a tuple of the x,y coordindates where the SDK Launcher will roughly be so the script can click on it. This can be a very rough estimate.
    • monitorResolution is simply a tuple of your screen resolution.
    • imgCropBoundaries is the boundary of the window the model in HLMV is contained within. The format is;
      • [pixel distance of left boundary from left of screen, pixel distance of top boundary from top of screen, pixel distance of right boundary from left of screen, pixel distance of bottom boundary from top of screen]
      • You should leave a few pixels gap from the window edge.
  • fileButtonCoordindates is a tuple of the x,y coordinates for the File menu button in HLMV.
  • optionsButtonCoodinates is a tuple of the x,y coordinates for the Options menu button in HLMV.
  • You're now set to take the images.

Workflow