Itoo Software Forum

Author Topic: RailClonePro: need help for increment rotation  (Read 698 times)

FP1432

  • Newbie
  • *
  • Posts: 3
RailClonePro: need help for increment rotation
« on: July 10, 2015, 05:20:44 PM »
I try to increment a rotation. Is this possible?
Thank

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: RailClonePro: need help for increment rotation
« Reply #1 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
Paul Roberts
iToo Software

FP1432

  • Newbie
  • *
  • Posts: 3
Re: RailClonePro: need help for increment rotation
« Reply #2 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

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: RailClonePro: need help for increment rotation
« Reply #3 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
Paul Roberts
iToo Software

FP1432

  • Newbie
  • *
  • Posts: 3
Re: RailClonePro: need help for increment rotation
« Reply #4 on: July 10, 2015, 07:22:48 PM »
Thank you. I prefer the first solution... Alas for me :o.

Pixelab

  • Jr. Member
  • **
  • Posts: 74
  • Suave mari magno
    • pixelab.be
Re: RailClonePro: need help for increment rotation
« Reply #5 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 !