Itoo Software Forum

Author Topic: XSplinePosition problem  (Read 476 times)

Sergey_Dobrij

  • Full Member
  • ***
  • Posts: 114
XSplinePosition problem
« 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!

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: XSplinePosition problem
« Reply #1 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.

Sergey_Dobrij

  • Full Member
  • ***
  • Posts: 114
Re: XSplinePosition problem
« Reply #2 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!

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: XSplinePosition problem
« Reply #3 on: May 06, 2023, 02:49:22 PM »
In this case, go with nested. Let me know if I can help.