Itoo Software Forum

Author Topic: switching between spline-id and index  (Read 418 times)

duck

  • Newbie
  • *
  • Posts: 12
switching between spline-id and index
« on: August 27, 2021, 05:57:47 PM »
Hello, I'm trying to build a style that can be either influenced by spline-id or an index number. In the example a spline-id or index of 3 should result in geometry. I can't seem to get it working for the spline-id tho.
Anyone has a clue what I'm doing wrong here.



Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1772
Re: switching between spline-id and index
« Reply #1 on: August 30, 2021, 10:28:59 AM »
Hi,

I would suggest you a slightly different set-up – using the Selector Operator driven by an Arithmetic Operator with a the following expression (looking for if Input1 is equal to 1 OR Input2 is equal to 3):

return if(Input1==1 | Input2==3,1,2);

Please find the modified scene. I hope you‘ll find it helpful.

Best regards,