Itoo Software Forum

Author Topic: Haning curtain selection issue  (Read 132 times)

Lars Egerrup / LKE Design

  • Newbie
  • *
  • Posts: 46
    • LKE design website
Haning curtain selection issue
« on: June 09, 2020, 10:34:28 AM »
Hi there,
I have made a RC setup that inserts hanging curtains based on a clip areas. There are posibilty for various widts on each side - and if the width of the window is less than a given paramter the curtain will only be inserted in one of the sides - and here comes the issue!! I have made a function that check wether the width of the clip area is less than the given width limit, and if it is it randomizes an index number and send it to two selectors, one for each side, which in combination is either (index 1) [Selector_Left] curtain, [Selector_Right] Empty ; (index2) [Selector_Left] Empty, [Selector_Right] Curtain ;  (index3) [Selector_Left] curtain, [Selector_Right] Curtain.
But it seems like it send a different index to each selector, in other words, it randomizes the index for each selector, - and I would like it to use the same index for both selectors at the same time. 

Here is a screendump of the whole setup
(RC_HaningCurtain - Overview.png)

And here is the problem area - where you see the selector setup
(RC_HaningCurtain - ProblemArea.png)

Here you can see the resulting curtains  - to better see the problem, I have lifted the curtains who are in index 1 and 2 from the floor
(RC_HaningCurtain - Result.png)

I hope it make sense :)
Lars Egerrup
LKE Design

E: Lars@LKEdesign.dk
W: www.LKEdesign.dk

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2693
    • iToo
Re: Haning curtain selection issue
« Reply #1 on: June 09, 2020, 10:44:46 AM »
could You please illustrate the issue with simplified max file, thanks
Rokas
iToo Software

Lars Egerrup / LKE Design

  • Newbie
  • *
  • Posts: 46
    • LKE design website
Re: Haning curtain selection issue
« Reply #2 on: June 10, 2020, 12:46:29 PM »
could You please illustrate the issue with simplified max file, thanks


I have sent to your private mail. Thanks

Cheers, Lars
Lars Egerrup
LKE Design

E: Lars@LKEdesign.dk
W: www.LKEdesign.dk