Bolt factory Dimensions Problem #44260

Closed
opened 2015-04-04 13:07:47 +02:00 by Carsten · 16 comments

System Information
Windows 8.1 nvidia something laptop

Blender Version
2.74

Short description of error

Bolt factory does not produce dimensional objects according to the scene units

Exact steps for others to reproduce the error

Add a Bolt. Switch to Metric Units and the bolt (e.g. the default M3 one) will be 72.5cm long.

Also when using a Scene Scale the Bolt Factory should respect the scaling an produce Bolts with the correct size. I for example use a scene scale of 0.001/Metric to match the dimensions of my construction better to my 3D Printer and to have a STL Export which works without scaling (ok, broken since 2.73 but in 2.72 Bolt factory shows the same problem). So I always have to scale by 10 to get a correct bolt.

**System Information** Windows 8.1 nvidia something laptop **Blender Version** 2.74 **Short description of error** Bolt factory does not produce dimensional objects according to the scene units **Exact steps for others to reproduce the error** Add a Bolt. Switch to Metric Units and the bolt (e.g. the default M3 one) will be 72.5cm long. Also when using a Scene Scale the Bolt Factory should respect the scaling an produce Bolts with the correct size. I for example use a scene scale of 0.001/Metric to match the dimensions of my construction better to my 3D Printer and to have a STL Export which works without scaling (ok, broken since 2.73 but in 2.72 Bolt factory shows the same problem). So I always have to scale by 10 to get a correct bolt.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Aaron Keith was assigned by Carsten 2015-04-04 13:07:47 +02:00
Author

Added subscriber: @CarstenWartmann

Added subscriber: @CarstenWartmann
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi, this is more a limitation than a bug.
I did some experiments today with little success.
If you open boltfactory createMesh.py, at line 29 it covers global scale:
GLOBAL_SCALE = 0.1 #1 blender unit = X mm
maybe you could change this for your projects/bolts?
I'll leave this open atm to give others time to examine solutions.
thanks, let me know if this helps.

hi, this is more a limitation than a bug. I did some experiments today with little success. If you open boltfactory createMesh.py, at line 29 it covers global scale: GLOBAL_SCALE = 0.1 #1 blender unit = X mm maybe you could change this for your projects/bolts? I'll leave this open atm to give others time to examine solutions. thanks, let me know if this helps.
Member

Added subscriber: @jambay

Added subscriber: @jambay
Member

Each object creation is based on model size not "environment" or related to other objects. I would agree there should be a setting for this, but should be a general topic not specific to bolts.

Each object creation is based on model size not "environment" or related to other objects. I would agree there should be a setting for this, but should be a general topic not specific to bolts.

Added subscriber: @Sergey

Added subscriber: @Sergey

Aaron, what's your call here?

Aaron, what's your call here?
Member

When Bolt Factory was first written, (AFAIK) Blender didn't have a concept of scene units and scale.

Now that this feature is available I would very much like to use it and scale the objects correctly according to the scene settings.

It should be pretty easy to do as every thing is scaled at one point in the code.

I will try and have a look at it in the next few weeks.

When Bolt Factory was first written, (AFAIK) Blender didn't have a concept of scene units and scale. Now that this feature is available I would very much like to use it and scale the objects correctly according to the scene settings. It should be pretty easy to do as every thing is scaled at one point in the code. I will try and have a look at it in the next few weeks.
Member

Please let me know if there is any work done regarding this. I also have a need/desire to do similar with "building basics" objects - https://developer.blender.org/T44022.

Please let me know if there is any work done regarding this. I also have a need/desire to do similar with "building basics" objects - https://developer.blender.org/T44022.
Member

I should be able to commit the fix tomorrow.

I should be able to commit the fix tomorrow.
Member

@spudmn
I recently made the changes to the presets system.
https://developer.blender.org/diffusion/BA/browse/master/add_mesh_BoltFactory/
It's now using Blender's built in preset system.
One thing I noticed & indeed it's in many addons, is a lack of generic 'scale' slider. (xyz combined into 1 scale slider)
It could be useful in this case for users making presets set to their own scale.

@spudmn I recently made the changes to the presets system. https://developer.blender.org/diffusion/BA/browse/master/add_mesh_BoltFactory/ It's now using Blender's built in preset system. One thing I noticed & indeed it's in many addons, is a lack of generic 'scale' slider. (xyz combined into 1 scale slider) It could be useful in this case for users making presets set to their own scale.
Member

Hi Brendon

I like that idea. I tried to fix this problem by using the scene units and scale. It worked fine for metric scenes but I was unsure what the user would expect to happen if they choose an imperial setting. Should the plug-in display metric units and convert to imperial for the object only. This was all a bit confusing.

By using the scale slider the user can decide.

I will look into this.

Aaron

Hi Brendon I like that idea. I tried to fix this problem by using the scene units and scale. It worked fine for metric scenes but I was unsure what the user would expect to happen if they choose an imperial setting. Should the plug-in display metric units and convert to imperial for the object only. This was all a bit confusing. By using the scale slider the user can decide. I will look into this. Aaron
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

closing as archived, issue is unsupported at this time.

closing as archived, issue is unsupported at this time.
Author

I dont think this is a good decision to close it. If a user uses imperials and generates a M (Metric) bolt he would of course expect a metric ISO bolt which is the exact length in Inch or whatever creepy units he uses. ;-I)

If it is not possible to solve such things it is needed to discuss with the core devs to change Blender in a way that such things are possible.

Carsten

I dont think this is a good decision to close it. If a user uses imperials and generates a M (Metric) bolt he would of course expect a metric ISO bolt which is the exact length in Inch or whatever creepy units he uses. ;-I) If it is not possible to solve such things it is needed to discuss with the core devs to change Blender in a way that such things are possible. Carsten
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#44260
No description provided.