Itoo Software Forum

Author Topic: material operator  (Read 3303 times)

  • Guest
material operator
« on: December 20, 2017, 09:22:45 AM »

I am trying to make a tiled floor and would like to have random material ids for the tiles.

I attached files to show what I am trying to achieve and what I have now.
I managed to get the basic shapes using 2 railclone objects, 1 nested in another.
As you can see from the photo, there is no visible pattern in each tiles finishes. They varies in colour.
I tried to have random mat ids using material operator, but as it only works on segments not by elements, I am having trouble.
If I put material operator on 1st railclone objects, then I get obvious repeating pattern when I lay tiles using 2nd railclone object.
If I put material operator on 2nd railclone instead of 1st one, it obviously put same id on a very large area therefore does not work.

Are there anyway you can randomize ids on every tiles? Would it be possible to make material operator to work on per elements?
As a workaround, I used railclone tool to convert railclone object to mesh and then used script to randomize mat ids, but it would be nicer if I did not have to do that way.



  • Hero Member
  • *****
  • Posts: 3324
Re: material operator
« Reply #1 on: December 20, 2017, 10:13:08 AM »

You should randomize materials in "RailClone005" object.
And in RailClone004, segment node, deform tab, check "nest"


  • Guest
Re: material operator
« Reply #2 on: December 21, 2017, 02:15:27 AM »
Hi Rokas,

It worked like a charm.
Thanks a lot. Never paid attention to that nest check box.
Learning something new every time.

Thanks again