Skip to content
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

[FEATURE REQUEST] Choose auto-rotate direction in settings #940

Open
tofof opened this issue Nov 13, 2024 · 1 comment
Open

[FEATURE REQUEST] Choose auto-rotate direction in settings #940

tofof opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tofof
Copy link

tofof commented Nov 13, 2024

Is your feature request related to a problem?

No.

Describe the solution you'd like

Settings -> Layer Preview -> Auto Rotate on Load (and auto flip)
I'd like to have a setting there to control the preferred direction of rotation, so I can choose CCW.
(If you're fiddling there anyway, offering the preference on auto flip directions also makes sense, but I don't personally care).

Motivation:
Right now, going from prusaslicer's sl1 to uvtools ends up rotated 180. Rotating CCW instead of CW makes the view in prusaslicer, the thumbnail it generates, and the view in uvtools all match.

Other possible solutions:
Run a script using the automations on loading a file to force ccw instead, but I'm unclear what method to call. In particular, I do NOT want to rotate the actual layer contents, just the UI view of them.

Files

No response

@tofof tofof added the enhancement New feature or request label Nov 13, 2024
@sn4k3
Copy link
Owner

sn4k3 commented Nov 15, 2024

Rotation direction cannot be guessed with the available data, an option could exist, but different files will require CW while others CCW, not a problem if you only use one machine or multiple with same direction.

Currently there is a way, as you say you can run an auto script after file load, scripts can run at UI level, which allow you to force whatever you want. Something like: if slicerfile is SL1s then rotate my view

variables:

ShowLayerImageRotateCWDirection = true
or
ShowLayerImageRotateCCWDirection= true

setup a uvtools_load.cs with either flag and test by set that file on UVtools options under Events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants