The Goal:
I'm trying to create a building generator that spawns building pieces based on while loop iterators. I'm trying to get the BBox value for the Width and Height of a given model, and use the iterator to duplicate, move, and rotate based on the UI input.
Here's what's working and what isn't:
What's Working:
- Builds window sections, freezes pivot, and translates on top of the ground plane.
- Groups window sections into a single "building".
- User Interface spawns with intSliderGrps and text fields.
What's Not Working:
- The windows are no longer being generated based on my while loops I created for the duplication and rotation of the window panel.
- I'm not able to get the result of the xmax - xmin and assign that as my window "Width" as well as subtracting the ymax from the ymin to get the "Height".
- the UI values aren't making that connection to my while loops so my UI knows how many sections of window panel it needs.
If anyone has any idea what I'm doing wrong or how I could go about doing this more efficiently, I'd love for some feedback!
Thanks so much!