ITOOSOFT Forum

RailClone => RailClone Pro (*) => Topic started by: Sergey_Dobrij on May 06, 2023, 05:25:23 am

Title: XSplinePosition problem
Post by: Sergey_Dobrij on May 06, 2023, 05:25:23 am
Hi all! I can't figure out why the expression isn't working properly. What could be the problem? Thank you in advance!
Title: Re: XSplinePosition problem
Post by: Dragan on May 06, 2023, 08:35:46 am
 ;D Yeah, been there... XplinePosition is not working as we expecting and expression like:
return
if(XSplinePosition==0,1,
if(XSplinePosition>0.98,3,2));

will work. But this is not a solution when you have values close to the value of 1.
So, workaround will be nested L1S Generator. With nested generator you'll get more control.
Title: Re: XSplinePosition problem
Post by: Sergey_Dobrij on May 06, 2023, 01:56:33 pm
;D Yeah, been there... XplinePosition is not working as we expecting and expression like:
return
if(XSplinePosition==0,1,
if(XSplinePosition>0.98,3,2));

will work. But this is not a solution when you have values close to the value of 1.
So, workaround will be nested L1S Generator. With nested generator you'll get more control.
I thought so )). So I took the detour! Thank you for your help!
Title: Re: XSplinePosition problem
Post by: Dragan on May 06, 2023, 02:49:22 pm
In this case, go with nested. Let me know if I can help.