### Author Topic: Wall height based on spline  (Read 196 times)

#### NCViz

• Newbie
• Posts: 44
##### Wall height based on spline
« on: June 02, 2020, 05:01:03 PM »
Is it possible to control the height of a wall with a spline?  I am trying to build a noise wall like the one attached.  The top of wall elevation varies and is stepped.

#### Dragan

• Sr. Member
• Posts: 496
##### Re: Wall height based on spline
« Reply #1 on: June 02, 2020, 05:31:41 PM »
Hi
Yes, it is possible. Here is a simple setup with Spline + Surface to match.
Please check the Deform settings both for Pole and Wall segments.
here is some documentation & tutorial on that subject:
https://docs.itoosoft.com/railclone/getting-started-with-railclone/10-techniques-to-deform-geometry
https://www.itoosoft.com/tutorials/using-deform-modes-in-railclone-lite
Best Regards
« Last Edit: June 02, 2020, 05:37:07 PM by Dragan »

#### NCViz

• Newbie
• Posts: 44
##### Re: Wall height based on spline
« Reply #2 on: June 02, 2020, 07:25:43 PM »
Thank you for your response.  This is similar to what I was trying but I need the top of the wall to actually follow the spline in elevation which varies.  Ideally I would be able to stack panels vertically until they reach the elevation of the spline.

#### Dragan

• Sr. Member
• Posts: 496
##### Re: Wall height based on spline
« Reply #3 on: June 02, 2020, 07:58:56 PM »
Ok, then use XsplineCoord.Z in expression to get Z coordinate of the spline and use this value to control the height of the walls. Just keep in mind that the origin will be the position of RC Icon.
This tutorial explains:
https://www.itoosoft.com/tutorials/bridge1?back=page%3D6%26tag%3Drailclone
note: this tutorial is for RC3 so please remember that for RC4 Expression needs RETURN for the start and   ;   at the end of the expression.
If you are in a hurry and need a Generator I could make one for you when I`m back on the computer later this evening.
It will be nice if you can share your start scene file. Please downgrade it to Max2017/2018.

« Last Edit: June 02, 2020, 08:06:30 PM by Dragan »

#### NCViz

• Newbie
• Posts: 44
##### Re: Wall height based on spline
« Reply #4 on: June 04, 2020, 05:17:47 PM »
I've played with this some but can't get it right.  Attached is my scene file.  I was in the middle of experimenting with using a separate top panel when I gave up.  The competed wall in the background is one that was built manually on another project.

#### Dragan

• Sr. Member
• Posts: 496
##### Re: Wall height based on spline
« Reply #5 on: June 04, 2020, 07:28:24 PM »

#### NCViz

• Newbie
• Posts: 44
##### Re: Wall height based on spline
« Reply #6 on: June 04, 2020, 08:32:55 PM »
I apologize.  I forgot to do that.  2018 file attached.

#### Dragan

• Sr. Member
• Posts: 496
##### Re: Wall height based on spline
« Reply #7 on: June 05, 2020, 06:46:27 AM »
Hi
This could be one of the possible solutions.
Note: Spline is reversed.

« Last Edit: June 05, 2020, 11:48:32 AM by Dragan »

#### NCViz

• Newbie
• Posts: 44
##### Re: Wall height based on spline
« Reply #8 on: June 05, 2020, 02:38:58 PM »
This looks good.  Thank you for your help.  What determines how far under ground the panels go?

#### Dragan

• Sr. Member
• Posts: 496
##### Re: Wall height based on spline
« Reply #9 on: June 05, 2020, 03:36:40 PM »
Z position of RC icon.