Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: ID2969 on July 19, 2021, 10:42:11 AM

Title: Incremental rotation
Post by: ID2969 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.
Title: Re: Incremental rotation
Post by: Paul Roberts 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.

(https://i.imgur.com/7EyFVEK.png)

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

Paul
Title: Re: Incremental rotation
Post by: ID2969 on July 20, 2021, 10:31:59 AM
Works prefect, had to update railclone to make it work! Thank you
Title: Re: Incremental rotation
Post by: RC_Arco 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?