discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Exporting png with --camera option

TO
Trevor Orr
Mon, Jul 29, 2024 3:42 PM

I am trying to export to png from the command line and was thinking that the viewport-control panel numbers for translate, rotate and distance would be the numbers to use for the --camera option but they don't seem be correct.  Is this not the case? If not how do I go about exporting with --camera with the view on the screen?

I am trying to export to png from the command line and was thinking that the viewport-control panel numbers for translate, rotate and distance would be the numbers to use for the --camera option but they don't seem be correct.  Is this not the case? If not how do I go about exporting with --camera with the view on the screen?
NH
nop head
Mon, Jul 29, 2024 4:43 PM

Yes I think they are but I pass 0 for the translate numbers and use
autocenter and viewall.

--camera=0,0,0,70,0,315,500--autocenter --viewall

On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

I am trying to export to png from the command line and was thinking that
the viewport-control panel numbers for translate, rotate and distance would
be the numbers to use for the --camera option but they don't seem be
correct.  Is this not the case? If not how do I go about exporting with
--camera with the view on the screen?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Yes I think they are but I pass 0 for the translate numbers and use autocenter and viewall. --camera=0,0,0,70,0,315,500--autocenter --viewall On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss < discuss@lists.openscad.org> wrote: > I am trying to export to png from the command line and was thinking that > the viewport-control panel numbers for translate, rotate and distance would > be the numbers to use for the --camera option but they don't seem be > correct. Is this not the case? If not how do I go about exporting with > --camera with the view on the screen? > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
NH
nop head
Mon, Jul 29, 2024 4:54 PM

Yes I can confirm copying all the numbers, specifying the projection and
the imagesize gives exactly the screen view.

On Mon, 29 Jul 2024 at 17:43, nop head nop.head@gmail.com wrote:

Yes I think they are but I pass 0 for the translate numbers and use
autocenter and viewall.

--camera=0,0,0,70,0,315,500--autocenter --viewall

On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss <
discuss@lists.openscad.org> wrote:

I am trying to export to png from the command line and was thinking that
the viewport-control panel numbers for translate, rotate and distance would
be the numbers to use for the --camera option but they don't seem be
correct.  Is this not the case? If not how do I go about exporting with
--camera with the view on the screen?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Yes I can confirm copying all the numbers, specifying the projection and the imagesize gives exactly the screen view. On Mon, 29 Jul 2024 at 17:43, nop head <nop.head@gmail.com> wrote: > Yes I think they are but I pass 0 for the translate numbers and use > autocenter and viewall. > > --camera=0,0,0,70,0,315,500--autocenter --viewall > > On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss < > discuss@lists.openscad.org> wrote: > >> I am trying to export to png from the command line and was thinking that >> the viewport-control panel numbers for translate, rotate and distance would >> be the numbers to use for the --camera option but they don't seem be >> correct. Is this not the case? If not how do I go about exporting with >> --camera with the view on the screen? >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
RD
Revar Desmera
Mon, Jul 29, 2024 5:05 PM

Except if the code sets any of the $vp* variables. Then --autocenter and --viewall and --camera get overridden.

-Revar

On Jul 29, 2024, at 9:54 AM, nop head via Discuss <discuss@lists.openscad.org> wrote:

Yes I can confirm copying all the numbers, specifying the projection and the imagesize gives exactly the screen view.

On Mon, 29 Jul 2024 at 17:43, nop head <nop.head@gmail.com> wrote:

Yes I think they are but I pass 0 for the translate numbers and use autocenter and viewall.
--camera=0,0,0,70,0,315,500--autocenter --viewall

On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss <discuss@lists.openscad.org> wrote:

I am trying to export to png from the command line and was thinking that the viewport-control panel numbers for translate, rotate and distance would be the numbers to use for the --camera option but they don't seem be correct. Is this not the case? If not how do I go about exporting with --camera with the view on the screen?

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

TO
Trevor Orr
Mon, Jul 29, 2024 5:23 PM

I figured out my issue, I also had --autocenter and --viewall as parameters.  Once I took those out it worked as expected.
On Monday, July 29, 2024 at 09:54:56 AM PDT, nop head via Discuss discuss@lists.openscad.org wrote:

Yes I can confirm copying all the numbers, specifying the projection and the imagesize gives exactly the screen view.
On Mon, 29 Jul 2024 at 17:43, nop head nop.head@gmail.com wrote:

Yes I think they are but I pass 0 for the translate numbers and use autocenter and viewall. 
 --camera=0,0,0,70,0,315,500--autocenter --viewall

On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss discuss@lists.openscad.org wrote:

I am trying to export to png from the command line and was thinking that the viewport-control panel numbers for translate, rotate and distance would be the numbers to use for the --camera option but they don't seem be correct.  Is this not the case? If not how do I go about exporting with --camera with the view on the screen?_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I figured out my issue, I also had --autocenter and --viewall as parameters.  Once I took those out it worked as expected. On Monday, July 29, 2024 at 09:54:56 AM PDT, nop head via Discuss <discuss@lists.openscad.org> wrote: Yes I can confirm copying all the numbers, specifying the projection and the imagesize gives exactly the screen view. On Mon, 29 Jul 2024 at 17:43, nop head <nop.head@gmail.com> wrote: Yes I think they are but I pass 0 for the translate numbers and use autocenter and viewall.   --camera=0,0,0,70,0,315,500--autocenter --viewall On Mon, 29 Jul 2024 at 16:42, Trevor Orr via Discuss <discuss@lists.openscad.org> wrote: I am trying to export to png from the command line and was thinking that the viewport-control panel numbers for translate, rotate and distance would be the numbers to use for the --camera option but they don't seem be correct.  Is this not the case? If not how do I go about exporting with --camera with the view on the screen?_______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org _______________________________________________ OpenSCAD mailing list To unsubscribe send an email to discuss-leave@lists.openscad.org