Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: HG2581 on July 10, 2019, 12:08:00 PM

Title: z scale to match spline
Post by: HG2581 on July 10, 2019, 12:08:00 PM
Hi
I have setup this railclone as per previous examples that you have on the forum where the z scale tracks the spline, but mine does not accurately do this. I have tried varying the length of the object but it is still out. Is there something wrong with the formula?
Title: Re: z scale to match spline
Post by: Rokas on July 10, 2019, 03:23:48 PM
Hi

I would suggest using X fixed Size instead of X fixed scale.

Attached modified scene. Hope this helps
Title: Re: z scale to match spline
Post by: HG2581 on July 10, 2019, 04:20:45 PM
Thanks for that, so how come it works for X and Not Z.

This would be a great tutorial to make.
Title: Re: z scale to match spline
Post by: Rokas on July 10, 2019, 07:10:11 PM
Thanks for that, so how come it works for X and Not Z.

I am sorry, I do not understand the question.

Turorial? Sure ! We will show this technique in some future tutorial.
Title: Re: z scale to match spline
Post by: HG2581 on July 10, 2019, 10:30:43 PM
What I meant was that that it did not work form me scaling in the Z axis but you changes it to the X Axis and the scaling along the line works. Why is there a difference?
Title: Re: z scale to match spline
Post by: Rokas on July 11, 2019, 07:51:34 AM
I am not scaling in X axis, that is why i do not understand the question:

I am using expression "return XSplineCoords.z;" to drive segments "Z fixed size":
(https://i.imgur.com/WHwq12r.png)
Title: Re: z scale to match spline
Post by: Dragan on July 11, 2019, 09:42:48 AM
I am not scaling in X axis, that is why i do not understand the question:

I am using expression "return XSplineCoords.z;" to drive segments "Z fixed size":
(https://i.imgur.com/WHwq12r.png)

He`s probably overlooked ".z" in XSplineCoords.z
Title: Re: z scale to match spline
Post by: Dragan on July 11, 2019, 09:58:19 AM
I was confused too at the beginning of using RC since I didn't find any documentation on how certain expression can work, especially the prefix/suffix that can be used.

Many examples can be found in Itoo support replies on users problems but some example list for the prefix/suffix use will be nice. Often people do not keep full tracking on other topics.

So, example list how to use prefix/suffix will be nice. ;)
Title: Re: z scale to match spline
Post by: HG2581 on July 11, 2019, 03:32:51 PM
Sorry, I got very confused with the Z at the end of the XsplineCoords.Z. I have spent some time going through it and it all makes sense. Thanks.