Itoo Software Forum

Author Topic: Why is it 0?  (Read 1266 times)

NK2971

  • Newbie
  • *
  • Posts: 4
Why is it 0?
« on: March 01, 2019, 10:44:20 AM »
Why is it 0?
« Last Edit: March 01, 2019, 11:30:14 AM by NK2971 »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Why is it 0?
« Reply #1 on: March 01, 2019, 11:37:01 AM »
I guess
5.663/100=0.0563  >>ruond = 0
5.663/10=0.5663 >>round = 1

NK2971

  • Newbie
  • *
  • Posts: 4
Re: Why is it 0?
« Reply #2 on: March 01, 2019, 12:44:09 PM »
Sorry.

System Unit = cm

I think
566.3/100=5.663 >> round = 6

In addition,

int N = XSplineLength

Even so return 0...

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Why is it 0?
« Reply #3 on: March 02, 2019, 10:08:45 AM »
Hi, when the "Evenly Count" parameter is evaluated, the spline is not ready yet within the RailClone workflow, and the expression returns 0.
In fact, the spline is not ready until the Evenly process is completed (and the Count parameter is needed for that).

I will check if we can modify it a bit, and provide a preliminar value to the Expression, so it returns the right length.


Carlos Quintero
iToo Software