Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Steeryl on May 15, 2018, 10:39:56 AM

Title: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 10:39:56 AM
Hey guys,

I'm wondering, how to do a differently scaled transformation like in the image attached. Can you help?
I dont know where to start...
Thank you so much!

Paddy
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Rokas on May 15, 2018, 11:20:38 AM
Hi,

Welcome to the forums. For segment size manipulation we need to use some expressions. Guide how to learn then can be found here. (https://docs.itoosoft.com/railclone/next-steps-with-railclone/3-parameters-and-attributes)

(https://i.imgur.com/KPWmDCI.jpg)
I created a sample scene for You to check it.
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 11:40:15 AM
Thank you! I will check it! :)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 11:46:38 AM
Okay! Almost got it. Now I want to take another spline for controlling the curvature. - > You used return XSplinePosition*Input1;
How would I use another splines Z positions to control the cirvature. I dont really know, how I change input1 to another input-Spline...
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Rokas on May 15, 2018, 11:48:24 AM
What do You mean controlling the curvature. We have a red spline to control the curvature.
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 11:54:06 AM
I mean, I want to use another spline to define, where on the first spline my objects get thicker in the Y and thinner in the y... Like here:
(https://imgur.com/N8nFHuW)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 11:54:47 AM
(https://i.imgur.com/N8nFHuW.png)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Rokas on May 15, 2018, 12:05:24 PM
What do You want that second spline to do? You can definitely use that for the pattern.
(https://i.imgur.com/UBxpOcQ.jpg)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 12:09:38 PM
I want the second spline to give me values, that I can take to tranform the obejcts in the Y. So that it doesnt just get bigger. I should get bigger and smaller, controllable.
So The second spline just gives values and acts like a control curve for scaling the objects on the first spline.
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Rokas on May 15, 2018, 01:51:29 PM
We can use same spline to drive distribution X and Y positioning, and Z position as segment Y scale (unfortunately while it followed z altitude as well). I then flattened this pattern with FFD modifier:
(https://i.imgur.com/h1t6Zus.gif)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Steeryl on May 15, 2018, 02:16:23 PM
Okay! Thank you so much for your help! Awesome! :)
Title: Re: How to do a differently scaled transformation of objects on a spline? I'm lost!
Post by: Rokas on May 15, 2018, 03:31:14 PM
Edit. I got a hint, how to remove the need for FFD- to introduce segment -z translation.
I attach a modified file without modifiers.