Difference between revisions of "Team Fortress Wiki:3D Models"

From Team Fortress Wiki
Jump to: navigation, search
(Requirements: *grope*)
m
Line 1: Line 1:
 
== Requirements ==
 
== Requirements ==
*[http://www.python.org/getit/releases/2.6.6/ Python 2.6 (32-bit version preferred)]
+
*[http://www.python.org/getit/releases/2.6.6/ Python 2.6 (32-bit version)]
 
*[http://www.rutherfurd.net/python/sendkeys/ SendKeys] (SendKeys-0.3.win32-py2.6.exe)
 
*[http://www.rutherfurd.net/python/sendkeys/ SendKeys] (SendKeys-0.3.win32-py2.6.exe)
 
*[http://www.pythonware.com/products/pil/index.htm Python Imaging Library (PIL)] (PIL-1.1.7.win32-py2.6.exe)
 
*[http://www.pythonware.com/products/pil/index.htm Python Imaging Library (PIL)] (PIL-1.1.7.win32-py2.6.exe)

Revision as of 21:54, 1 September 2011

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