Snap_Utilities_Line not reacting to mouse position after typing when axis is locked #105137

Closed
opened 2024-01-18 03:48:16 +01:00 by Glen Charles Rowell · 5 comments

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: version: blender-4.1.0-alpha+main.4effcd33a3f9-windows.amd64-release
4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: No

Addon Information
Name: Snap_Utilities_Line (6, 7, 1)
Author: Germano Cavalcante

Short description of error
If it's okay, can you make it so the positive value moves towards to mouse after locking the axis and selecting the direction with the mouse? It would be great to be able to easily lock the axis and then type in lengths but then choose the positive or negative direction with the mouse position. Currently when you pick the first direction the line is stuck an ignores the mouse position. It doesn't go the other way when the axis is locked but mouse is moved. It should be able to move with the mouse in the positive and negative direction after the length is typed in but enter is not pressed. Not just point in the original direction.

Exact steps for others to reproduce the error
Start drawing a line.

Lock the z axis with the z key.

Type in 2 and check the direction.

  • Do not type in a number larger than 10 as this causes a different bug to start. #105129

After typing in the length move the mouse in the opposite direction. The line doesn't flip to the other side.

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: blender-4.1.0-alpha+main.4effcd33a3f9-windows.amd64-release 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: No **Addon Information** Name: Snap_Utilities_Line (6, 7, 1) Author: Germano Cavalcante **Short description of error** If it's okay, can you make it so the positive value moves towards to mouse after locking the axis and selecting the direction with the mouse? It would be great to be able to easily lock the axis and then type in lengths but then choose the positive or negative direction with the mouse position. Currently when you pick the first direction the line is stuck an ignores the mouse position. It doesn't go the other way when the axis is locked but mouse is moved. It should be able to move with the mouse in the positive and negative direction after the length is typed in but enter is not pressed. Not just point in the original direction. **Exact steps for others to reproduce the error** Start drawing a line. Lock the z axis with the z key. Type in 2 and check the direction. * Do not type in a number larger than 10 as this causes a different bug to start. https://projects.blender.org/blender/blender-addons/issues/105129 After typing in the length move the mouse in the opposite direction. The line doesn't flip to the other side.
Glen Charles Rowell added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-01-18 03:48:16 +01:00

Thank you for your suggestion. However, we discourage feature requests in this channel to maintain efficiency. For user feedback and feature requests, please use other channels: User Feedback and Feature Requests.

While I appreciate your input, as the addon's author, I'm not currently inclined to implement these minor improvements. Nevertheless, I'm open to reviewing patches from contributors: Contributing Code.

For more information on why this isn't considered a bug, please visit: Not a Bug.

Thank you for your suggestion. However, we discourage feature requests in this channel to maintain efficiency. For user feedback and feature requests, please use other channels: [User Feedback and Feature Requests](https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests). While I appreciate your input, as the addon's author, I'm not currently inclined to implement these minor improvements. Nevertheless, I'm open to reviewing patches from contributors: [Contributing Code](https://wiki.blender.org/wiki/Process/Contributing_Code). For more information on why this isn't considered a bug, please visit: [Not a Bug](https://wiki.blender.org/wiki/Reference/Not_a_bug).
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2024-01-18 04:10:44 +01:00

It was more complex than I expected, but a solution was implemented in 368fe93ffd

It was more complex than I expected, but a solution was implemented in 368fe93ffd9502f1432304f75f1a3e9bba87a799

I just tried Blender 4.1.0 Alpha 1dfb41bc7550 SHA 19 Jan 09:52 x64. Thank you so much for the two amazing updates.

The code worked really well when the axis is locked but not when unlocked.

Maybe an if statement would be good, saying something like do what the code is doing is now if the x, y or z axis is locked but then having something slightly different when it's unlocked.


The broken bit: Click somewhere without the axis being locked and type in a distance like 2. Then move the mouse around. The line will flip 180 degrees when the mouse moves. It points perfectly in the positive or negative direction but does not spin around the first point, at the set length, 360 degrees. It is almost perfect though.

A attached a video just to show the 180 flip with a positive and negative number. Which is good, but it just needs to be able to spin freely or to the snap points, like increments.

I just tried Blender 4.1.0 Alpha 1dfb41bc7550 SHA 19 Jan 09:52 x64. Thank you so much for the two amazing updates. The code worked really well when the axis is locked but not when unlocked. Maybe an if statement would be good, saying something like do what the code is doing is now if the x, y or z axis is locked but then having something slightly different when it's unlocked. -------------------------------------- The broken bit: Click somewhere without the axis being locked and type in a distance like 2. Then move the mouse around. The line will flip 180 degrees when the mouse moves. It points perfectly in the positive or negative direction but does not spin around the first point, at the set length, 360 degrees. It is almost perfect though. A attached a video just to show the 180 flip with a positive and negative number. Which is good, but it just needs to be able to spin freely or to the snap points, like increments.
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-01-19 17:01:22 +01:00

I don't consider this a bug.

I don't consider this a bug.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2024-01-19 17:13:33 +01:00

I can’t say much other than thank you as you made it work when the axis is locked, as the title for the bug says, and it is heaps better than before. But it only half works now as it can't move normally. Just flip back and forward 180 degrees. If I use ChatGTP and try and figure out some code to fix this, can the case be left open till I figure out how to fix it or can I create a new issue report? I'll try hard to figure out how to code and submit a push request. The line tool is finally almost working perfectly.

I can’t say much other than thank you as you made it work when the axis is locked, as the title for the bug says, and it is heaps better than before. But it only half works now as it can't move normally. Just flip back and forward 180 degrees. If I use ChatGTP and try and figure out some code to fix this, can the case be left open till I figure out how to fix it or can I create a new issue report? I'll try hard to figure out how to code and submit a push request. The line tool is finally almost working perfectly.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105137
No description provided.