Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: FP1432 on July 10, 2015, 05:20:44 PM

Title: RailClonePro: need help for increment rotation
Post by: FP1432 on July 10, 2015, 05:20:44 PM
I try to increment a rotation. Is this possible?
Thank
Title: Re: RailClonePro: need help for increment rotation
Post by: Paul Roberts on July 10, 2015, 05:34:21 PM
Hi!

You can do this with RailClone using expressions. XSplinePosition returns a scalar between 0 and 1 that you can use to increment a rotation value based on a segment's position in the array. I've attached an example that lets you set a start and end rotation and interpolates between the two along the spline's length.

I hope that helps out but if you have any more questions please let me know.

Many thanks,

Paul
Title: Re: RailClonePro: need help for increment rotation
Post by: FP1432 on July 10, 2015, 05:41:34 PM
Thank a lot Paul.
This is what I feared. One thing very simple, impossible without expressions. This is not normal :-[. Fortunately your file should help me :). Thanks again
Title: Re: RailClonePro: need help for increment rotation
Post by: Paul Roberts on July 10, 2015, 06:02:36 PM
No problem at all. I understand that writing expressions isn't for everyone. If you'd prefer to create this effect using nodes, you can simply input just the XSplinePosition Variable on it's own in an arithmetic operator. This will then act as though we had added an operator that performs that function, and you can build the rest of the equation using additional arithmetic, constant and variable nodes. Personally I find writing an expression neater but I know many people prefer to stay node based. See attached for the same expression created in this way.

Cheers!

Paul
Title: Re: RailClonePro: need help for increment rotation
Post by: FP1432 on July 10, 2015, 07:22:48 PM
Thank you. I prefer the first solution... Alas for me :o.
Title: Re: RailClonePro: need help for increment rotation
Post by: Pixelab on July 16, 2015, 06:44:20 PM
Thank you. I prefer the first solution... Alas for me :o.

You shouuld try expressions, this is not overly complicated and it takes RC to the next level !