pitch not bellow 10 cm by modelling bolts in real sizes on metric unit cm #84782

Open
opened 2021-01-16 15:46:28 +01:00 by George Kugler · 10 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) UHD Graphics 630 Intel 4.5.0 - Build 27.20.100.8681

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: blender/blender@0f45cab862
Worked: (newest version of Blender that worked as expected)

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

Short description of error

by creating bolts, using metric units: cm
I'm not able to set a pich bellow 10 cm (see attachments)

Exact steps for others to reproduce the error
my standard setup is:

  • set scene on metric units .
  • length on: cm. (I model in real sizes)

on adding a bolt (shift_a):
settings like attached .png
it is not possible to set pitch bellow 10 cm

.png
Screenshot 2021-01-16 bolt_error.png

bolt_error.blend
bolt_error.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) UHD Graphics 630 Intel 4.5.0 - Build 27.20.100.8681 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `blender/blender@0f45cab862` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: BoltFactory (0, 4, 0) Author: Aaron Keith **Short description of error** by creating bolts, using metric units: cm I'm not able to set a pich bellow 10 cm (see attachments) **Exact steps for others to reproduce the error** my standard setup is: - set scene on metric units . - length on: cm. (I model in real sizes) on adding a bolt (shift_a): settings like attached .png it is not possible to set pitch bellow 10 cm .png ![Screenshot 2021-01-16 bolt_error.png](https://archive.blender.org/developer/F9581964/Screenshot_2021-01-16_bolt_error.png) bolt_error.blend [bolt_error.blend](https://archive.blender.org/developer/F9581969/bolt_error.blend)
Author

Added subscriber: @geku

Added subscriber: @geku

#86837 was marked as duplicate of this issue

#86837 was marked as duplicate of this issue

Added subscribers: @cwolf3d, @spudmn, @rjg

Added subscribers: @cwolf3d, @spudmn, @rjg

The add-on has for some reason set a hard minimum for this property (bf_Pitch). I'm not sure if there is any particular reason behind this choice. The entire default scale is incorrect with the add-on though as with default unit settings it creates bolts that several meters long, so perhaps if this issue would be addressed the given limits would be wide enough for practical use.

@spudmn @cwolf3d is there any particular reason for this limit and the incorrect scale?

The add-on has for some reason set a hard minimum for this property (`bf_Pitch`). I'm not sure if there is any particular reason behind this choice. The entire default scale is incorrect with the add-on though as with default unit settings it creates bolts that several meters long, so perhaps if this issue would be addressed the given limits would be wide enough for practical use. @spudmn @cwolf3d is there any particular reason for this limit and the incorrect scale?
Member

Hi

The entire default scale is incorrect with the add-on though as with default unit settings

Yes that is a problem with bolt factory. When it was written there was no concept of units in blender.

If you can point me to how I can obtain the units setting for the project I can scale the bolt to the correct size. When this is done then I will check the hard limits make sense.

Aaron

Hi >The entire default scale is incorrect with the add-on though as with default unit settings Yes that is a problem with bolt factory. When it was written there was no concept of units in blender. If you can point me to how I can obtain the units setting for the project I can scale the bolt to the correct size. When this is done then I will check the hard limits make sense. Aaron
Member

OK I found how to get the unit_settings.

      print(bpy.context.scene.unit_settings.system)
      print(bpy.context.scene.unit_settings.scale_length)
      print(bpy.context.scene.unit_settings.length_unit)

I will look into scaling the model correctly

OK I found how to get the unit_settings. ``` print(bpy.context.scene.unit_settings.system) print(bpy.context.scene.unit_settings.scale_length) print(bpy.context.scene.unit_settings.length_unit) ``` I will look into scaling the model correctly

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

@spudmn Great, marking this ticket as confirmed then.

@spudmn Great, marking this ticket as confirmed then.
Member

Added subscribers: @Tek3D, @erik85

Added subscribers: @Tek3D, @erik85

This should be marked as a duplicate of #83322. Addon was written before internal blender units were standardized to 1m, so author assumed 1mm… so minimum pitch of 10cm was actually intended to be 0.01mm

This should be marked as a duplicate of #83322. Addon was written before internal blender units were standardized to 1m, so author assumed 1mm… so minimum pitch of 10cm was actually intended to be 0.01mm
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#84782
No description provided.