Itoo Software Forum

Author Topic: Gradient Probability  (Read 396 times)

PIARENA

  • Newbie
  • *
  • Posts: 4
Gradient Probability
« 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?

Dragan

  • Hero Member
  • *****
  • Posts: 1298
Re: Gradient Probability
« Reply #1 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.
« Last Edit: November 22, 2021, 11:53:37 AM by Dragan »

PIARENA

  • Newbie
  • *
  • Posts: 4
Re: Gradient Probability
« Reply #2 on: November 22, 2021, 11:45:30 AM »
« Last Edit: November 22, 2021, 11:56:08 AM by PIARENA »

Dragan

  • Hero Member
  • *****
  • Posts: 1298
Re: Gradient Probability
« Reply #3 on: November 22, 2021, 11:51:23 AM »
Please if you can downgrade it to max2020.

PIARENA

  • Newbie
  • *
  • Posts: 4
Re: Gradient Probability
« Reply #4 on: November 22, 2021, 11:57:30 AM »
fixed the link

Dragan

  • Hero Member
  • *****
  • Posts: 1298
Re: Gradient Probability
« Reply #5 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.

Dragan

  • Hero Member
  • *****
  • Posts: 1298
Re: Gradient Probability
« Reply #6 on: November 22, 2021, 12:12:44 PM »
Here is the file.
Just pay attention that Transition Position/Range are now scene units.

PIARENA

  • Newbie
  • *
  • Posts: 4
Re: Gradient Probability
« Reply #7 on: November 22, 2021, 12:15:12 PM »
Thank you it works!