jneilliii / OctoPrint-BedLevelVisualizer

MIT License
373 stars 82 forks source link

[FR]: front,left,right,back labels #450

Open legend069 opened 3 years ago

legend069 commented 3 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

hello, i think it would be really neat to add custom labels to the UI for example where it has the X axis being able to add the "front,Rear,Left,Right" would be nice

see image for example https://imgur.com/O2qfCBM

Describe alternatives you've considered

modifying your code :)

Additional context

see image for example https://imgur.com/O2qfCBM

aalku commented 3 years ago

I want this or at least axis default position configurable and 0,0 point more remarked, more clearly visible. I wish it to be to the left and closer to the point of view, as in most printers, but configurable is better.

jneilliii commented 3 years ago

The camera position option allows you to change the initial viewpoint.

aalku commented 3 years ago

True but I am not able to understand how to place the camera where I want. It's totally confusing for me. Every time I use the visualizer I end up turning the view until I am certain where is the axis origin.

jneilliii commented 3 years ago

I think I figured out a way that you can determine this camera setting until I can get around to adding the feature to save the camera position in a future update. If you position the camera the way you want it, then open your browser's developer tools and run the command below in the console tab it should return the 3 values to enter.

$('#bedlevelvisualizergraph')[0].layout.scene.camera.eye;

for example for me returns

{x: -0.10186578524303729, y: -2.3810544607403936, z: 1.9045011121953177}

so the setting would be entered in the plugin's settings as

-0.10186578524303729, -2.3810544607403936, 1.9045011121953177

image

aalku commented 3 years ago

Thank you!

aalku commented 3 years ago

It didn't work. The coordinates returned are always the same. They don't change when I rotare the camera (and run the snippet again).

jneilliii commented 3 years ago

It didn't work. The coordinates returned are always the same. They don't change when I rotare the camera (and run the snippet again).

That's strange. I just tested and it's working for me, I'm using Chrome.

image

aalku commented 3 years ago

Ir works now. 🤔🤷🏻‍♂️ Thank you again!

bratwiz commented 2 years ago

Hello,

I would very much like to see "Front", "Rear", "Left", "Right" labels also. It can be confusing looking at the screen and wondering whether the top of the chart indicates I should be using the front or the back adjustment wheels.

I just discovered (from reading in this thread) the feature / ability to move the nozzle directly using the tools in the graph. But I don't see how to take a reading at that location..??

Thank you for your hard work on this plugin !!!

seif3r commented 2 years ago

I would really like this as a feature as well =)

julesgilson commented 1 year ago

I think I figured out a way that you can determine this camera setting until I can get around to adding the feature to save the camera position in a future update. If you position the camera the way you want it, then open your browser's developer tools and run the command below in the console tab it should return the 3 values to enter.

$('#bedlevelvisualizergraph')[0].layout.scene.camera.eye;

alternatively check this object:

$('#bedlevelvisualizergraph')[0]._fullLayout.scene.camera.eye

Jules.