Welcome! Log In Create A New Profile

Advanced
Re: Offline Parts Catalogue
avatarDecember 11, 2012 10:21AM
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:
-SaveWidth=512 -SaveHeight=512 -SaveZoomToFit=0 -SaveAlpha=1 -AutoCrop=1 -FOV=0.1

For baseplates, I use the following:
-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:
-cg-30,225,300000

For everything else, I use the following:
-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.
SubjectAuthorViewsPosted
Offline Parts Catalogue eeyore1123July 26, 2012 12:47PM
Re: Offline Parts Catalogue Steffen440July 26, 2012 02:20PM
Re: Offline Parts Catalogue Willy Tschager367November 30, 2012 12:41AM
Re: Offline Parts Catalogue Chris Dee307December 02, 2012 08:36AM
Re: Offline Parts Catalogue Attachments Michael Heidemann325December 02, 2012 09:31AM
Re: Offline Parts Catalogue Willy Tschager298December 03, 2012 01:27AM
Re: Offline Parts Catalogue Michael Heidemann250December 03, 2012 09:05AM
Re: Offline Parts Catalogue Travis Cobbs290December 02, 2012 06:15PM
Re: Offline Parts Catalogue Willy Tschager295December 03, 2012 01:31AM
Re: Offline Parts Catalogue Travis Cobbs285December 03, 2012 11:51AM
Re: Offline Parts Catalogue Travis Cobbs304December 05, 2012 09:28AM
Re: Offline Parts Catalogue Roland Melkert282December 05, 2012 10:17AM
Re: Offline Parts Catalogue Travis Cobbs303December 05, 2012 10:55AM
Re: Offline Parts Catalogue Roland Melkert310December 05, 2012 12:03PM
Re: Offline Parts Catalogue Willy Tschager287December 06, 2012 11:28AM
Re: Offline Parts Catalogue Michael Heidemann345December 06, 2012 12:51PM
Re: Offline Parts Catalogue Travis Cobbs302December 06, 2012 04:56PM
Re: Offline Parts Catalogue Michael Heidemann306December 09, 2012 07:46AM
Re: Offline Parts Catalogue Travis Cobbs350December 09, 2012 06:41PM
Re: Offline Parts Catalogue Michael Heidemann323December 10, 2012 11:28AM
Re: Offline Parts Catalogue Travis Cobbs289December 10, 2012 04:27PM
Re: Offline Parts Catalogue Michael Heidemann369December 09, 2012 09:48AM
Re: Offline Parts Catalogue Travis Cobbs363December 09, 2012 06:35PM
Re: Offline Parts Catalogue Michael Heidemann370December 10, 2012 11:40AM
Re: Offline Parts Catalogue Travis Cobbs354December 10, 2012 04:40PM
Re: Offline Parts Catalogue Michael Heidemann302December 11, 2012 09:09AM
Re: Offline Parts Catalogue Travis Cobbs435December 11, 2012 10:21AM
Re: Offline Parts Catalogue Michael Heidemann299December 11, 2012 02:07PM
Re: Offline Parts Catalogue Travis Cobbs319December 11, 2012 09:37PM
Re: Offline Parts Catalogue Philippe Hurbain302December 11, 2012 10:34AM
Re: Offline Parts Catalogue Michael Heidemann644December 11, 2012 02:06PM
Re: Offline Parts Catalogue Paul Griffin281December 17, 2012 06:38PM
Re: Offline Parts Catalogue Tim Gould243December 17, 2012 06:42PM
Re: Offline Parts Catalogue Travis Cobbs272December 17, 2012 06:56PM
Re: Offline Parts Catalogue Michael Heidemann245December 18, 2012 08:49AM
Re: Offline Parts Catalogue Travis Cobbs230December 18, 2012 10:28AM
Re: Offline Parts Catalogue Michael Heidemann241December 19, 2012 08:02AM
Re: Offline Parts Catalogue Travis Cobbs212December 19, 2012 09:50AM
Re: Offline Parts Catalogue Steffen210December 19, 2012 09:52AM
Re: Offline Parts Catalogue Travis Cobbs211December 19, 2012 10:18AM
Re: Offline Parts Catalogue Steffen238December 19, 2012 10:45AM
Re: Offline Parts Catalogue Travis Cobbs238December 19, 2012 11:41AM
Re: Offline Parts Catalogue Steffen268December 22, 2012 12:55PM
Re: Offline Parts Catalogue Travis Cobbs286December 22, 2012 04:21PM
Re: Offline Parts Catalogue Travis Cobbs278December 22, 2012 11:34PM
Re: Offline Parts Catalogue Michael Heidemann281December 23, 2012 12:18AM
Re: Offline Parts Catalogue Philippe Hurbain314December 23, 2012 08:20AM
Re: Offline Parts Catalogue Michael Heidemann258December 23, 2012 08:40AM
Re: Offline Parts Catalogue Chris Dee307December 23, 2012 01:36PM
Re: Offline Parts Catalogue Travis Cobbs258December 23, 2012 06:39PM
Re: Offline Parts Catalogue Travis Cobbs258December 23, 2012 06:36PM
Re: Offline Parts Catalogue Philippe Hurbain261December 23, 2012 11:19PM
Re: Offline Parts Catalogue Travis Cobbs259December 24, 2012 12:19AM
Re: Offline Parts Catalogue Philippe Hurbain253December 24, 2012 01:34AM
Re: Offline Parts Catalogue Michael Heidemann289December 24, 2012 03:27AM
Re: Offline Parts Catalogue Travis Cobbs327December 24, 2012 03:03PM
Re: Offline Parts Catalogue Travis Cobbs280December 23, 2012 06:24PM
Re: Offline Parts Catalogue Travis Cobbs280December 21, 2012 10:41AM
Re: Offline Parts Catalogue Travis Cobbs292December 21, 2012 10:55AM
Re: Offline Parts Catalogue Michael Heidemann319December 21, 2012 11:20AM
Re: Offline Parts Catalogue Willy Tschager250December 18, 2012 11:18AM
Re: Offline Parts Catalogue Travis Cobbs277December 18, 2012 12:16PM
Re: Offline Parts Catalogue Bryan Waters290December 18, 2012 01:11PM
Re: Offline Parts Catalogue Travis Cobbs287December 18, 2012 03:42PM
Re: Offline Parts Catalogue Don Heyse422April 20, 2013 11:55AM



Sorry, only registered users may post in this forum.

Click here to login