Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Ingo on May 10, 2016, 06:07:06 PM

Title: Using Bezier curve to control scale
Post by: Ingo on May 10, 2016, 06:07:06 PM
Hi there,

ist there a way to control the scale of the segments with a Bezier curve (like in the attached screenshot)?

Best regards
Ingo

Title: Re: Using Bezier curve to control scale
Post by: Michal Karmazín on May 11, 2016, 12:06:42 PM
Hi,

That's something feasible using a similar work-flow as commented in this "Auto scale bridge pillars to an uneven ground plane. (http://forum.itoosoft.com/index.php?topic=2669.msg10129#msg10129)" post.

You can read corresponding Z coordinates of such spline by the "XSplineCoords.z" Expression in the Arithmetic Operator (optionally multiply it, if needed) and drive with this value the Scale (Transform - X/Y/Z Fixed Scale). Attaching sample scene.

Hope you'll find it useful.

Best regards,
Title: Re: Using Bezier curve to control scale
Post by: Ingo on May 11, 2016, 03:02:51 PM
Hi Michal,

thanks a lot for your answer. Is it also possible to let the Segments follow a spline A as usual and use a spline B for the scale?

Best regards
Ingo
Title: Re: Using Bezier curve to control scale
Post by: Michal Karmazín on May 11, 2016, 04:31:44 PM
Hi Ingo,

Unfortunately, I can't see a way how to actually implement two splines into such style, but the one that'll drive the scale can be used to define the shape too (it'll be projected and work as usually). Attaching screenshots.

Best regards,