BoltFactory scale issues #105353

Closed
opened 2024-06-13 21:15:41 +02:00 by Michael-Brown-1 · 2 comments

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

Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: 40a5e739e270
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: BoltFactory (0, 4, 0)
Author: Aaron Keith

Short description of error
When using metric units in millimeters, the BoltFactory addon creates huge bolts using meter dimensions. When specifying units in millimeters, it doesn't work as it doesn't support sub-millimeter dimensions. Seems to be a long standing issue that hasn't been addressed.

Exact steps for others to reproduce the error
Add > Mesh > Bolt

**System Information** Operating system: Windows-11 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: `40a5e739e270` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: BoltFactory (0, 4, 0) Author: Aaron Keith **Short description of error** When using metric units in millimeters, the BoltFactory addon creates huge bolts using meter dimensions. When specifying units in millimeters, it doesn't work as it doesn't support sub-millimeter dimensions. Seems to be a long standing issue that hasn't been addressed. **Exact steps for others to reproduce the error** Add > Mesh > Bolt
Michael-Brown-1 added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-06-13 21:15:41 +02:00

it would appear the BoltFactory scripts define everything in millimeters, but because I have Length = Millimeters in Blender that the units probably apply a scale factor of 1000 on the units defined in the script. I'm not quite sure where that's done or if the addon is using older api methods. I can change the GLOBAL_SCALE = .001 to counter it, but then all the units in the dialogs are still scaled.

Anyone with a better understanding of addons know how this should be fixed properly?

it would appear the BoltFactory scripts define everything in millimeters, but because I have Length = Millimeters in Blender that the units probably apply a scale factor of 1000 on the units defined in the script. I'm not quite sure where that's done or if the addon is using older api methods. I can change the `GLOBAL_SCALE = .001` to counter it, but then all the units in the dialogs are still scaled. Anyone with a better understanding of addons know how this should be fixed properly?

I found that the reason this was happening was because my scene scale was set to 1.0, and length was set to millimeters. I should have set the scene scale to 0.001 for everything to be of the correct scale.

I was wondering why my exported 3d models were not of the correct units, even though things looked ok in Blender - at least until I tried some of the mesh addons!

I'll close this issue - hopefully it helps others with this problem.

I found that the reason this was happening was because my scene scale was set to 1.0, and length was set to millimeters. I should have set the scene scale to 0.001 for everything to be of the correct scale. I was wondering why my exported 3d models were not of the correct units, even though things looked ok in Blender - at least until I tried some of the mesh addons! I'll close this issue - hopefully it helps others with this problem.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2024-06-13 22:25:21 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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#105353
No description provided.