Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: duck on August 27, 2021, 05:57:47 PM

Title: switching between spline-id and index
Post by: duck 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.


Title: Re: switching between spline-id and index
Post by: Michal Karmazín 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,