New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Enable console commands #12

Closed
TheRoby opened this Issue Feb 24, 2017 · 7 comments

Comments

2 participants
@TheRoby

TheRoby commented Feb 24, 2017

Hi,

Is it possible to add a new option that generates a list of pdf ?

I have a lot of ldr file to convert ...

if it's possible to use lpub3d_x64.exe test.ldr /pdf test.pdf (or in the gui ?)

Thanks :)

@trevorsandy trevorsandy self-assigned this Feb 24, 2017

@trevorsandy trevorsandy added this to QUEUE in LPub3D Next Feb 24, 2017

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Feb 24, 2017

Yes, it is possible. I've added the request to the enhancement queue. Cheers,

@trevorsandy trevorsandy added this to the v2.1.0 milestone Feb 24, 2017

@TheRoby

This comment has been minimized.

TheRoby commented Feb 24, 2017

@trevorsandy trevorsandy modified the milestones: v2.1.0, v2.2 Feb 17, 2018

@trevorsandy trevorsandy removed this from the v2.2 milestone Mar 15, 2018

@TheRoby

This comment has been minimized.

TheRoby commented Apr 11, 2018

Why do you have removed this ? :(

Thank's for all :)

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Apr 13, 2018

Actually, I moved it to LPub3DNext

@trevorsandy trevorsandy removed this from QUEUE in LPub3D Next Apr 26, 2018

@trevorsandy trevorsandy reopened this Apr 26, 2018

@trevorsandy trevorsandy added this to the v2.2.3 milestone Apr 28, 2018

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Apr 28, 2018

Console command flags enabled:

Usage:
<application name> [options] [ldraw file]

[ldraw file]:
Absolute file path and name with .ldr, .mpd or .dat extension.

[options]:
Process LDraw file and generate images in png format.
-pf, --process-file

Export instruction document or images. Used with export-option. Default is pdf document.
-pe, --process-export

Turn on fade previous steps. Default is off.
-fs, --fade-steps

Set the global fade colour. Overridden by fade opacity - if opacity not 100 percent. Default is 151 - Very Light Bluish Grey or user defined.
-fc, --fade-steps-colour <LDraw colour code>

Set the fade steps opacity percent. Overrides fade colour - if opacity not 100 percent. Default is 100 percent or used defined.
-fo, --fade-step-opacity <percent>

Turn on highlight current step. Default is off.
-hs, --highlight-step

Set the step highlight colour. Colour code optional. Format is #RRGGBB. Default is #FFFF00 - Bright Yellow or user defined.
-hc, --highlight-step-colour <Hex colour code>

Turn on "reset" the LDraw file and image caches. Used with process-file or process-export. Default is off.
-x, --clear-cache

Set page range - e.g. 1,2,9,10-42. Default is all pages.
-r, --range <page range>

Set output format pdf, png, jpeg or bmp. Used with process-export. Default is pdf.
-o, --export-option <option>

Designate the pdf document save file using absolute path.
-f, --pdf-output-file <path>

Designate the png, jpg or bmp save folder using absolute path.
-d, --image-output-directory <directory>

Set renderer ldglite, ldview, ldview-sc or povray. Default is ldview.
-p, --preferred-renderer <renderer>

Cheers,

@trevorsandy trevorsandy added this to DONE in LPub3D Maintenance via automation Apr 28, 2018

@trevorsandy trevorsandy changed the title Batch generating export to pdf [Enhancement] Enable console commands Apr 28, 2018

@TheRoby

This comment has been minimized.

TheRoby commented Apr 28, 2018

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Sep 5, 2018

Complete list of console commands for v2.3.0.

// LPub3D commands
-pf,  --process-file: Process ldraw file and generate images in png format.
-pe,  --process-export: Export instruction document or images. Used with export-option. Default is pdf document.
-fs,  --fade-steps: Turn on fade previous steps. Default is off.
-fc,  --fade-steps-colour <LDraw colour code>: Set the global fade colour. Overridden by fade opacity - if opacity not 100 percent. Default is Very_Light_Bluish_Grey
-fo,  --fade-step-opacity <percent>: Set the fade steps opacity percent. Overrides fade colour - if opacity not 100 percent. Default is 50 percent.
-icr, --ignore-console-redirect: Turn off automatic launch of command console session if one does not exist - batch mode only. Default is off.
-hs,  --highlight-step: Turn on highlight current step. Default is off.
-hc,  --highlight-step-colour <Hex colour code>: Set the step highlight colour. Colour code optional. Format is #RRGGBB. Default is Bright Yellow (#FFFF00)
-of,  --pdf-output-file <path>: Designate the pdf document save file using absolute path.
-rs,  --reset-search-dirs: Reset the LDraw parts directories to those searched by default. Default is off.
-x,   --clear-cache: Turn off reset the LDraw file and image caches. Used with export-option change. Default is off.
-r,   --range <page range>: Set page range - e.g. 1,2,9,10-42. Default is all pages.
-o,   --export-option <option>: Set output format pdf, png, jpeg or bmp. Used with process-export. Default is pdf.
-d,   --image-output-directory <directory>: Designate the png, jpg or bmp save folder using absolute path.
-p,   --preferred-renderer <renderer>: Set renderer native, ldglite, ldview, ldview-sc or povray. Default is native.
-v,   --version: Output LPub3D version information and exit.

// 3DViewer (LeoCAD) commands [not tested]
-i,   --image <outfile.ext>: Save a picture in the format specified by ext.
-w,   --width <width>: Set the picture width.
-h,   --height <height>: Set the picture height.
-f,   --from <time>: Set the first step to save pictures.
-t,   --to <time>: Set the last step to save pictures.
-s,   --submodel <submodel>: Set the active submodel.
-c,   --camera <camera>: Set the active camera.
-obj, --export-wavefront <outfile.obj>: Export the model to Wavefront OBJ format.
-3ds, --export-3ds <outfile.3ds>: Export the model to 3D Studio 3DS format.
-dae, --export-collada <outfile.dae>: Export the model to COLLADA DAE format.
-html,--export-html <folder>: Create an HTML page for the model.
--viewpoint <front|back|left|right|top|bottom|home>: Set the viewpoint.
--camera-angles <latitude> <longitude>: Set the camera angles in degrees around the model.
--orthographic: Make the view orthographic.
--highlight: Highlight pieces in the steps they appear.
--shading <wireframe|flat|default|full>: Select shading mode for rendering.
--line-width <width>: Set the with of the edge lines.
--html-parts-width <width>: Set the HTML part pictures width.
--html-parts-height <height>: Set the HTML part pictures height.
-vv, --viewer-version: Output 3DViewer - by LeoCAD version information and exit.

// Help
-?,  --help: Display this help message and exit.

@trevorsandy trevorsandy moved this from DONE to DEPLOYED in LPub3D Maintenance Sep 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment