Offline Parts Catalogue


Re: Offline Parts Catalogue
#27
I need to modify my script to output both categorized HTML and a full list HTML. (I modified it to categorize the parts so that the individual HTML files would be smaller, because the big one was crashing some browsers.) Once I do that, I'll give OpenOffice a try for the PDF generation.

For consistent scale parts, I'm using settings that Chris Dee and I together worked out for the parts tracker. (I did the initial work, and he tweaked it to make things work better.) The parts are first divided into three categories: baseplates, panels, and everything else.

Baseplates are straightforward: the first word of their name is "baseplate". (You have to parse "~Moved to" lines to find the final name, otherwise "~Moved to" baseplates won't get recognized as baseplates.) Baseplates get rendered at half the scale of everything else.

Panels are identified by a short list of filename patterns, and get rendered from the opposite side so that you can see their printing, which would otherwise be on the back.

For the command line, I use the following options for all three categories:
Code:
-SaveWidth=512 -SaveHeight=512 -SaveZoomToFit=0 -SaveAlpha=1 -AutoCrop=1 -FOV=0.1

For baseplates, I use the following:
Code:
-cg30,45,600000

For panels, which are recognized based on their filename with a regex of "^(4864|6268|4215|2362|4865|4345ap|4345bp)[^0-9].*", I use the following:
Code:
-cg-30,225,300000

For everything else, I use the following:
Code:
-cg30,45,300000

Note: the big numbers above (600000 and 300000) are from my memory. I tweaked the values that Chris sent me (400000 and 275000), so they might not be exactly correct.

Also note that a few parts (48x48 baseplate, really large train bases) get clipped by the above settings. There are few possible solutions to that:
  • Pull the camera back for everything to draw everything at a smaller scale.
  • Pull the camera back just for them to draw them at a smaller scale.
  • Pull the camera back, but increase the maximum image dimensions by a comparable amount.
  • Some combination of the above.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Offline Parts Catalogue - by eeyore - 2012-07-26, 19:47
Re: Offline Parts Catalogue - by Steffen - 2012-07-26, 21:20
Re: Offline Parts Catalogue - by Chris Dee - 2012-12-02, 16:36
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-03, 19:51
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-05, 17:28
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-05, 18:55
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-11, 18:21
Re: Offline Parts Catalogue - by Tim Gould - 2012-12-18, 2:42
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-18, 18:28
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-19, 17:50
Re: Offline Parts Catalogue - by Steffen - 2012-12-19, 17:52
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-19, 18:18
Re: Offline Parts Catalogue - by Steffen - 2012-12-19, 18:45
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-19, 19:41
Re: Offline Parts Catalogue - by Steffen - 2012-12-22, 20:55
Re: Offline Parts Catalogue - by Chris Dee - 2012-12-23, 21:36
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-24, 23:03
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-21, 18:41
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-21, 18:55
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-18, 20:16
Re: Offline Parts Catalogue - by Bryan Waters - 2012-12-18, 21:11
Re: Offline Parts Catalogue - by Travis Cobbs - 2012-12-18, 23:42
Re: Offline Parts Catalogue - by Don Heyse - 2013-04-20, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)