Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Gabriel on October 07, 2015, 01:09:54 AM

Title: Transform segment along a spline
Post by: Gabriel on October 07, 2015, 01:09:54 AM
Hello,

I was wondering if there is a way to transform the same segment along a path. For example I would like its scale to be 100% at start but to get gradually smaller by the end of the spline. I have tried playing around with the plug in but I haven't managed to have success.

Thanks in advance
Title: Re: Transform segment along a spline
Post by: Paul Roberts on October 07, 2015, 11:24:19 AM
Hi Gabriel,

To do this you would need to use an expression that will rescale the object based on it's position along the spline. To do this follow these steps.


I hope that helps, please see the attached file for this example.

Many thanks!

Paul


To learn more about expressions, check out Chapter 3 of our new RailClone guide (http://docs.itoosoft.com/display/RAILCLONE/3++-+Wiring+Parameters+and+Attributes).
Title: Re: Transform segment along a spline
Post by: Gabriel on October 08, 2015, 01:43:25 AM
Oh I see! Thanks a lot for your help Paul.   :D

Title: Re: Transform segment along a spline
Post by: Yuriy Bochkaryov on October 12, 2015, 04:44:20 PM
Hello,
Is it possible to have more control points? Not only start and end, but some in the middle.
Thanks
Title: Re: Transform segment along a spline
Post by: Paul Roberts on October 12, 2015, 06:17:41 PM
Hi,

Though it is possible, it's a little bit fiddly at the moment (see attached).

(http://i.imgur.com/i8dQOiN.png)

In future versions we hope to make this process simpler, possibly using transform markers placed along the spline.


Many thanks,

Paul
Title: Re: Transform segment along a spline
Post by: Yuriy Bochkaryov on October 12, 2015, 06:23:53 PM
thank you!
Title: Re: Transform segment along a spline
Post by: Yuriy Bochkaryov on October 14, 2015, 02:07:20 PM
Hi Paul,
I made some tests...
If start scale is higher than 30% - everything goes wrong
Please see the screenshot - http://clip2net.com/s/3oKF6o5
Title: Re: Transform segment along a spline
Post by: Paul Roberts on October 14, 2015, 03:27:50 PM
Hi,

You're right, there was a mistake in the graph. The attached version should fix it.

Many thanks,

Paul