Itoo Software Forum

Author Topic: Area distribution  (Read 2261 times)

DN4548

  • Newbie
  • *
  • Posts: 9
Area distribution
« on: July 04, 2014, 12:32:25 PM »
Hi All, I'm trying to write a script that scatters plants on a balcony. To get it realistic look I would like just 1 plant per balcony. Is there any way of specifying you would like 1 object in a spline area? and another object in a second spline area? My distribution map is set to Full at the moment.

The fact that I'm scripting this shouldn't matter in this scenario. Same rules should apply??

Cheers,
John

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Area distribution
« Reply #1 on: July 04, 2014, 12:51:17 PM »
I don`t know how to script that, but sure there is this possibility:

Rokas

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Area distribution
« Reply #2 on: July 04, 2014, 02:01:17 PM »
The "Select Models" parameter is stored in "arspeclist". Although it's not easily scriptable, because values are stored as an array of strings (one string by area, each one with the IDs of the models).
Carlos Quintero
iToo Software

DN4548

  • Newbie
  • *
  • Posts: 9
Re: Area distribution
« Reply #3 on: July 04, 2014, 02:56:31 PM »
Cheers guys. That worked great! I just used the code in the listener and it worked fine.

$.arspeclist[2] = " 1  2  3  4"

DN4548

  • Newbie
  • *
  • Posts: 9
Re: Area distribution
« Reply #4 on: July 08, 2014, 10:16:18 AM »
Hi All, Following on from talking about areas. Could anyone explain why I can't get more variation into my scattered objects. I've attached a screenshot to show the problem. Anyone got any ideas? Maybe the area size is too small?

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Area distribution
« Reply #5 on: July 08, 2014, 10:28:35 AM »
Hi All, Following on from talking about areas. Could anyone explain why I can't get more variation into my scattered objects. I've attached a screenshot to show the problem. Anyone got any ideas? Maybe the area size is too small?

Not really, the area has not effect on the random values. Does it change modifying General->Random Seed ?
Carlos Quintero
iToo Software

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Area distribution
« Reply #6 on: July 08, 2014, 10:37:15 AM »
You should use different splines for different areas (if you want to distribute hand-picked selected models). In attached image big red box.
I think you did this only once with chair and once with plant with all the areas needed and hence this is only one variation in the scene.
Those should be separate splines per one "style"
Hope I was clear. If not ask more.

I think for what You do, RailClone would be better choice- You are putting one chair and one plant per balcony(i think).
Rokas

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Area distribution
« Reply #7 on: July 08, 2014, 10:58:32 AM »
ok, I made quick scene to illustrate one way of doing this. Maybe staff from itoo will help to make it better.
« Last Edit: July 08, 2014, 11:14:20 AM by Rokas »
Rokas

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2447
Re: Area distribution
« Reply #8 on: July 08, 2014, 04:52:28 PM »
Hi,

There is no need to create a separate spline for each model. Inside the Areas rollout by clicking on Plants - Select models - Pick button various models can be selected and these will be scattered based on model's probabilities (defined in Geometry rollout). With one spline for chairs and the other one for plants it's sufficient. By selecting desired ones (all chairs or all plants) in Select models window it should work fine. At first look the setup on screenshot seems to be correct.

If the issue with "randomness" persist please send us a simplified scene (containing problematic objects) to support@itoosoft.com. For large files, please use a web sharing service as WeTransfer or Dropbox.

Kind regards,

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Area distribution
« Reply #9 on: July 08, 2014, 05:01:33 PM »
thank You- it`s more effeciant now.
Rokas