Print at Dec 16, 2025, 1:34:46 PM

Posted by Puybaret at Dec 15, 2022, 6:07:14 PM
Re: Staircase generator plug-in
I might provide a longer list of materials in a coming version since some of you think it's really necessary. I'll update the translation at that moment.

Could you share how to set randomized coordinates for the textures as you did for the threads and risers?
Source code is included in the plug-in so you can have a look by yourself. It's just a random offset added to x and y texture coordinates, a different offset being drawn for each tread and riser.
In Sweet Home 3D, you can change the texture offsets in the texture modification dialog box and in Blender, you can move texture coordinates in UV editor yourself but in both cases, it won't be different for each staircase.

If you want to configure the size of a spiral staircase, you can check the angle covered by the staircase directly in the plug-in dialog box. It's written after the dimensions label and changing the stair/tread depth will change this angle. As finding the right value is a boring try and check process, I wondered if I should add buttons beside the depth field to compute the depth for 90° and 180° angles.

If you want a staircase with top and bottom landings, just select a U shpaed staircase type and set the Turn stairs count / Turn step count to 1.

About storing the staircase data to make it editable, I'm not really found of this at the moment.
In case you didn't pay attention to it, the last entered values in the plug-in are kept until you quit the program, making it easy to update the last generated staircase by deleting it and opening the plug-in dialog box again.
Storing entered values could be done simply with properties, but being able to reuse these values for each staircase would imply either an additional Modify staircase menu item, or modifying them from the current furniture modification dialog box, something which is not possible in the current version of Sweet Home 3D.
I'm thinking about adding the ability to change the existing user interface from a plug-in, but fear it might get dangerous and provoke some instabilities.
Maybe, just proposing an additional menu item in the contextual menu would be sufficient but many people don't use contextual menu (particularly under macOS). But proposing this additional contextual menu item implies modifications in Sweet Home 3D too.

Adding information about the slope or pitch angle shouldn't be difficult except that this angle varies along square spiral staircases, but we could display an average angle for them.
Taking into account regulations is probably out of reach just because regulations are different from a country to the other, as Keet noticed also.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator