Hi iToo and everyone,

I'm trying to calculate the number of segments required over a specific spline section length, but I cannot get the expression to evaluate correctly:

return round(XSectionLength/Input1);

Whereby "Input1" is the X size of the segment; 91.5cm in this instance. So let's say the X spline section is 1000cm:

Round(1000/91.5) - this should evaluate to 11?

This is then plugged into the counter node of a sequence operator. But is doesn't work. Any ideas what I'm doing wrong? Is the expression outputting in scene units?

Any help very much appreciated!

Tim

I'm trying to calculate the number of segments required over a specific spline section length, but I cannot get the expression to evaluate correctly:

return round(XSectionLength/Input1);

Whereby "Input1" is the X size of the segment; 91.5cm in this instance. So let's say the X spline section is 1000cm:

Round(1000/91.5) - this should evaluate to 11?

This is then plugged into the counter node of a sequence operator. But is doesn't work. Any ideas what I'm doing wrong? Is the expression outputting in scene units?

Any help very much appreciated!

Tim