Itoo Software Forum

Author Topic: Beginner question - spacing glazing panels from the centre of a spline  (Read 494 times)

Dean

  • Newbie
  • *
  • Posts: 19
Hello,

I'm just getting started with Railclone, and I have a basic question!

I want to space out glazing panels 800mm apart, with sliced panels at the end to fill in the ends. At the moment I'm using the Default node, and this starts the spacing from the start of the spline. When I use Evenly I can't seem to get the ends right. I think I'm missing something obvious, but I'm stuck!

I have attached 2 screen shots. railclone.jpg shows the left glazing as shorter than the others. So ideally this should be cut in half, and it added to the right side (does that make sense?!) Also by doing this the central panel should be central to the smaller returned glazing.

Any help or pointers would be really appreciated!

Thanks,
Dean

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1531
Re: Beginner question - spacing glazing panels from the centre of a spline
« Reply #1 on: February 14, 2017, 04:52:56 PM »
Hi,

That's feasible with help of Arithmetic Operators - the first one uses expression "floor(XSectionLength/Input1)" to calculate the number of panels that'll fit to each spline section, the expression "(XSectionLength-Input1*Input2)/2" in the second one rests the length of panels that will fit from the spline section length to get the "sides length" - applied in the sample to scene to Transform Operator overriding the Segment's X Fixed Size. To place these shorter parts as a first & last Segment on each spline section Conditional Operators are used (detecting the Position on Section).

Attaching a sample scene. Hope you'll find it useful.

Best regards,

Dean

  • Newbie
  • *
  • Posts: 19
Re: Beginner question - spacing glazing panels from the centre of a spline
« Reply #2 on: February 14, 2017, 05:25:59 PM »
Thanks for the reply! I won't pretend to understand what's going on, but I can certainly re-use the setup you've made in the Max file :)

It's a lot more complicated than I thought, I had just thought this type of thing would have been a standard feature. I had thought the Evenly node would have been able to handle this, but it doesn't deal with the ends or corners.

Anyway, massive thank you!
Dean