Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: Ihno on November 24, 2024, 01:25:37 pm
-
Hi, I'm not a programmer at all and I'm struggling to get this to work:
I've built a cone out of bricks using a linear array and a circle spline which I copied and scaled the multiple times, it looks like the image in the attachments.
My Problem now is that I want the walls of the cone to get incrementally thinner.
I've seen this: https://www.youtube.com/watch?v=RFzPmVHmXHw&t=658s
Which is promising, but it uses the xSplinePosition which in my case won't help.
Is it possible to alter the expression in a way that it uses two points of the z world position as start/end point of the incremental scaling?
-
Hi,
For these purposes, the XSplineCoords.z attribute can be used. Please find attached a sample scene (241125_XSplineCoordsZSampleScene_ITOOSOFT.max). I hope that helps.
Best regards,
-
Thanks alot, I hat to poke around for a bit and got this now:
Return ((Input1*-1)*(XSplineCoords.z/691-1))+(Input2*(XSplineCoords.z/691));
Which does work! ;D
691 beeing the hight of the highest spline ring in max units.
There might be a way to get the hight of the highest copy of the base geometry so there would be no need to hard code it in. But it does the trick for me.
Thanks again!