Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Viz3D on March 19, 2018, 02:05:31 PM

Title: Issue when using areas with selected objects and clusters
Post by: Viz3D on March 19, 2018, 02:05:31 PM
Hello,
I'm creating a forest objects and using some models as scattered objects. Then I create some areas (with Paint Area) and pick some objects to be distributed at every area. Everything works fine until I chose to enable clusters. Then only the last object in the "pick list" gets distributed inside every area. Only when I enable cluster noise I begin to get a distribution of the rest of models in the list. Is this the way it is supposed to work? I would like to get clusters of the picked objects inside every area.
I'm using max2017 and forest v5.4.1.
I'm attaching a sample scene for you to test.
Thank you in advance!
Title: Re: Issue when using areas with selected objects and clusters
Post by: Michal Karmazín on March 19, 2018, 04:54:51 PM
Hi,

That’s because the same Color ID is used for these items – by modifying these, you should get the desired look.

Hope that helps.

Best regards,
Title: Re: Issue when using areas with selected objects and clusters
Post by: Viz3D on March 19, 2018, 08:35:36 PM
Oh I see. I'll try this. Thank you.
Although it would be handy to be able to use the same color ID for group of objects for viewport feedback. Maybe a feauture request?  :)
Title: Re: Issue when using areas with selected objects and clusters
Post by: Viz3D on March 20, 2018, 10:13:52 AM
Since we have to use different color ID's to overcome the above issue, is there a script (or a listener command) that we can use to randomize the color ID's of the scattered objects?
Title: Re: Issue when using areas with selected objects and clusters
Post by: Michal Karmazín on March 20, 2018, 11:41:07 AM
Hi,

The following maxscript should do the trick:

Code: [Select]
for i = 1 to $.coloridlist.count do $.coloridlist[i] = [(random 0 255), (random 0 255), (random 0 255)];
Hope that helps.

Best regards,
Title: Re: Issue when using areas with selected objects and clusters
Post by: Viz3D on March 20, 2018, 12:09:23 PM
Thank you for the quick reply. Sadly I can't make it work. Maybe it's because of my limited maxscript knowledge.
Anyway, I guess I have to do it manually.
I appreciate your help.
Title: Re: Issue when using areas with selected objects and clusters
Post by: Michal Karmazín on March 20, 2018, 12:17:56 PM
Hi,

Because of the formatting, the code wasn't shown properly. I've just fixed it ;)
Code: [Select]
for i = 1 to $.coloridlist.count do $.coloridlist[i] = [(random 0 255), (random 0 255), (random 0 255)];
Best regards,
Title: Re: Issue when using areas with selected objects and clusters
Post by: Viz3D on March 20, 2018, 12:32:15 PM
Awesome!!! Thank you so much!!  :D :D