Itoo Software Forum

Author Topic: How to control Evenly Distance with Arithmetic and XSplineLength.  (Read 632 times)

hobeijnk

  • Newbie
  • *
  • Posts: 2
I am trying to control the evenly distance of a Linear 1S generator using expressions in an Arithmetic node. It seems to work alright until I introduce the XSplineLength. When using XSplineLength in the if conditional, Railclone will not produce any geometry. When I replace the XSplineLenght with a float or integer it works fine, even though the values are the same.
the expression I wrote is as follows:

Code: [Select]
return
if (Input1 >= 7, XSplineLength/2.0, XSplineLength/4.0);



Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2672
Re: How to control Evenly Distance with Arithmetic and XSplineLength.
« Reply #1 on: December 06, 2021, 10:46:34 AM »
Hi,

thanks for the question. I'm afraid that the X Evenly parameter cannot be controlled dynamically (it must be the same for all splines). In RailClone 5 we have improved this a little, but it can still only be controlled in this way when using clipping spline with Extend X/Y Size to area.

Thanks,
Paul
Paul Roberts
iToo Software