Itoo Software Forum

Author Topic: Trouble with size attributes of Selector operator when Index is random  (Read 194 times)

tonyinseattle

  • Newbie
  • *
  • Posts: 8
Hello, everyone...

I'm having a problem when exporting the size attributes in a Selector operator when the Index for that operator is randomly generated. When the Index is randomly generated, the size attributes do not match the selected segment. When the Index is not randomly generated, there's no problem. Here's the scoop:

I have some random closed spline shapes and I'm trying to create buildings of random heights on each shape using random window styles. The window styles are different heights, so the overall building height (or the Y Size of the generator) should change based on which window type is randomly selected for that spline.

I also have a bottom segment and a top segment... So if I randomly generate X stories for a building on that spline, the Y size of the generator should be bottom height + (window height * X) + top height. I basically feed the Y Size from the Selector operator into an Arithmetic operator, do my Y size calculations and feed that into the generator. It doesn't work.

Take a look at my attached file. You'll notice that several of the building's windows are lopped off. When examining the Y size attribute, it does not appear to be actually tied to the segment selected via a random number generated for the index. Instead it seems to have its own mind. If I connect a Constant parameter to it, it works fine. Any ideas? Is this even the most efficient way for me to create buildings like this?

Thanks!

Tony

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Trouble with size attributes of Selector operator when Index is random
« Reply #1 on: February 24, 2021, 08:14:54 AM »
Thanks. Reported as a bug.
Rokas

tonyinseattle

  • Newbie
  • *
  • Posts: 8
Re: Trouble with size attributes of Selector operator when Index is random
« Reply #2 on: February 24, 2021, 09:12:02 AM »
Thanks, Rokas... I appreciate the quick reply. Do you have any ideas of what I can do as a workaround in the meantime?

Tony