### Author Topic: Gradient probability on objects variation  (Read 791 times)

#### winoo1

• Newbie
• Posts: 15
##### Gradient probability on objects variation
« on: November 26, 2019, 09:28:57 AM »
Hello.

Sorry for generating topic here, but i can't do it in RailClone Pro section.

I'm trying to create in RailClone Pro office tower facade. I have 2 different segments. My goal is to create facade where bottom uses one type of segments, and top uses the other one. Between them along tower height i want to gradient variation, the same way as in Itoo tutorial - https://www.itoosoft.com/tutorials/using-railclones-gradient-probability-macro?back=page%3D2%26tag%3Drailclone but instead material variation i want to use geometry variation.

Anyone can help? I've tried and tried and with no success. I'm pretty sure that the solution is very simple, but there are no tutorials about that kind of problems in the internet.

#### Rokas

• Hero Member
• Posts: 3324
##### Re: Gradient probability on objects variation
« Reply #1 on: November 26, 2019, 09:51:44 AM »
Hi and Welcome!

I have fixed Your account permissions and moved topic to PRO board.

Regarding Your question- generally You randomize geometry with randomize node:

If You want gradient we will need some math expressions. I have attached a 3 segments gradient macro for You as well as whole example scene:

I hope that helps
« Last Edit: November 26, 2019, 10:07:51 AM by Rokas »
Rokas

#### winoo1

• Newbie
• Posts: 15
##### Re: Gradient probability on objects variation
« Reply #2 on: November 26, 2019, 09:57:08 AM »
I think that solves my problem. Is it possible to achieve this effect if i'm using both x and y splines for a2s array?
Also - if i want to use your solution but with 2 modules, not 3, am i correct that i just need to delete one segment from the selector?
Anyway many thanks for the tip )
« Last Edit: November 26, 2019, 10:00:34 AM by winoo1 »

#### Rokas

• Hero Member
• Posts: 3324
##### Re: Gradient probability on objects variation
« Reply #3 on: November 26, 2019, 10:03:57 AM »
I think that solves my problem. Is it possible to achieve this effect if i'm using both x and y splines for a2s array?
Also - if i want to use your solution but with 2 modules, not 3, am i correct that i just need to delete one segment from the selector?
Anyway many thanks for the tip )
Macro works for 2 segments as well. Feel free to experiment:
Rokas

#### winoo1

• Newbie
• Posts: 15
##### Re: Gradient probability on objects variation
« Reply #4 on: November 26, 2019, 10:05:52 AM »
Thanks a lot That was exacly what i needed