Itoo Software Forum

Author Topic: Tapered Fence?  (Read 7116 times)

George

  • Full Member
  • ***
  • Posts: 122
Tapered Fence?
« on: April 10, 2014, 06:54:09 AM »
I'm trying to recreate one of the attached fences (the taper would occur on a particular ID). The bottom height stays constant, and the top tapers down. How would I do this?

If there's no current solution, could I suggest adding the ability to set a morph amount on a per segment basis? That way I could have a morph on the left and right top corners of the wood paling, and set it according to distance along segment in an expression, etc.




Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Tapered Fence?
« Reply #1 on: April 10, 2014, 10:25:16 AM »
Hi George,

You could achieve that effect by using a spline to define the top of the fence instead of the bottom. The using the equation (XSplineCoords.z/currentFenceSegmentHeight)*100 you calculate a scale value that will fit the fence segments between the spline and the RailClone object's position on the z axis as defined by it's pivot point. Using this technique it's possible to create not only fences with slopes but undulating curves and other shapes too  :)

Please see the attached file and screenshot for an example.

Hope that helps,

Paul
Paul Roberts
iToo Software

George

  • Full Member
  • ***
  • Posts: 122
Re: Tapered Fence?
« Reply #2 on: April 11, 2014, 01:49:46 AM »
Brilliant! Although just to confirm, this wouldn't work if you wanted a non-constant height bottom, right?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Tapered Fence?
« Reply #3 on: April 11, 2014, 10:18:46 AM »
Hi George,

You're correct, this would only work if the bottom of the fence is a constant height.

Thanks,

Paul
Paul Roberts
iToo Software