Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: PIARENA on November 22, 2021, 10:05:01 AM

Title: Gradient Probability
Post by: PIARENA on November 22, 2021, 10:05:01 AM
Can you tell me how to get a height gradient? I use the built-in macro, but it makes the gradient horizontal. Is it possible to get a solution to use a gradient without using a 2s array?
Title: Re: Gradient Probability
Post by: Dragan on November 22, 2021, 11:32:00 AM
Hi,
Can you please share the scene file (if possible some lower Max version)?
I guess you did a simple L1S Generator.
You can edit the macro on the arithmetic node placed on the Output Values Based note.
Instead YSplinePosition you could use SubSplineCounter or XSplineCoords.# Depend on Spline orientation. Of course, you will have to adopt Transition Position/Range limits to match the values.
Title: Re: Gradient Probability
Post by: PIARENA on November 22, 2021, 11:45:30 AM
https://dropmefiles.net/ru/KHM4yNVZcE  for max2018
Title: Re: Gradient Probability
Post by: Dragan on November 22, 2021, 11:51:23 AM
Please if you can downgrade it to max2020.
Title: Re: Gradient Probability
Post by: PIARENA on November 22, 2021, 11:57:30 AM
fixed the link
Title: Re: Gradient Probability
Post by: Dragan on November 22, 2021, 12:01:51 PM
ok.
In the meantime check this file.
The gradient is based on Z coordinates. So think of it as how much height in cm you want to affect.
Title: Re: Gradient Probability
Post by: Dragan on November 22, 2021, 12:12:44 PM
Here is the file.
Just pay attention that Transition Position/Range are now scene units.
Title: Re: Gradient Probability
Post by: PIARENA on November 22, 2021, 12:15:12 PM
Thank you it works!