Page MenuHome

pitch not bellow 10 cm by modelling bolts in real sizes on metric unit cm
Confirmed, NormalPublic

Description

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: rB0f45cab862b8
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

bolt_error.blend

Event Timeline

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.

@Aaron Keith (spudmn) @Vladimir Spivak (cwolf3d) is there any particular reason for this limit and the incorrect scale?

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

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

Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Jan 27 2021, 9:53 AM

@Aaron Keith (spudmn) Great, marking this ticket as confirmed then.