Itoo Software Forum

Author Topic: z scale to match spline  (Read 1264 times)

HG2581

  • Newbie
  • *
  • Posts: 17
z scale to match spline
« 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?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: z scale to match spline
« Reply #1 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
Rokas

HG2581

  • Newbie
  • *
  • Posts: 17
Re: z scale to match spline
« Reply #2 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.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: z scale to match spline
« Reply #3 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.
« Last Edit: July 10, 2019, 09:18:30 PM by Rokas »
Rokas

HG2581

  • Newbie
  • *
  • Posts: 17
Re: z scale to match spline
« Reply #4 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?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: z scale to match spline
« Reply #5 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":
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: z scale to match spline
« Reply #6 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":


He`s probably overlooked ".z" in XSplineCoords.z

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: z scale to match spline
« Reply #7 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. ;)
« Last Edit: July 11, 2019, 11:31:25 AM by Dragan »

HG2581

  • Newbie
  • *
  • Posts: 17
Re: z scale to match spline
« Reply #8 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.