Itoo Software Forum

Author Topic: Incremental rotation  (Read 926 times)

ID2969

  • Newbie
  • *
  • Posts: 2
Incremental rotation
« on: July 19, 2021, 10:42:11 AM »
Is there a way to incrementally rotate every instance for let's say 2 degrees around each instance's axis?
I've tried the Christmas tree tutorial, but it doesn't work. Each instance is on a spline, I guess that's the difference.
Also, some instances on start and end are rotated in 90 degrees compared to others. Not sure why is that.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Incremental rotation
« Reply #1 on: July 19, 2021, 01:09:29 PM »
Thanks for the question.

This is  possible using the SubSplineCounter variable which returns a simple numeric count for each sub spline. By multiplying this with the rotation increment you should be able to get the result you're after. 

There's a actually a macro you can use called X Spline Variables that will give you access to this value without having to resort to expressions. Here's a screen shot showing an example of how it could be used.



I hope that helps, if you have any further questions then please let me know.

Paul
Paul Roberts
iToo Software

ID2969

  • Newbie
  • *
  • Posts: 2
Re: Incremental rotation
« Reply #2 on: July 20, 2021, 10:31:59 AM »
Works prefect, had to update railclone to make it work! Thank you

RC_Arco

  • Newbie
  • *
  • Posts: 2
Re: Incremental rotation
« Reply #3 on: May 17, 2023, 10:05:13 AM »
Hello,

I´m trying the same setting but can't get any rotation, even if I plug the node the the "default slot". Anybody can enlight me why?