Itoo Software Forum

Author Topic: different people  (Read 6928 times)

roysgi10

  • Jr. Member
  • **
  • Posts: 73
different people
« on: May 04, 2012, 05:59:01 PM »
Hi.
is it possible to make  one forest that each plan represent different character (see attachement?) if yes- how?

Thanks.

Roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #1 on: May 04, 2012, 06:12:28 PM »
Yes, using Custom Edit mode and Maxscript:

1) Switch to Custom Edit mode in "Tree Editor".
2) Run the following script:

Code: [Select]
for i = 0 to $.trees.count() do
(
$.trees.setGeomID i i
)
$.update()

3) Select all items and click Tree Editor->Reset Size.

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #2 on: May 04, 2012, 09:04:16 PM »
thanks for the quick reply.

try your sugestion and this is what i get ( see attachement).
when i close this window all the proprtion of the plane( people) change.

Thanks.

roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #3 on: May 05, 2012, 09:28:14 AM »
Please, use this script:

Code: [Select]
n = 1
for i = 0 to $.trees.count()-1 do
  (
  $.trees.setGeomID i n;
  n = n+1;
  if(n > $.geomlist.count) then
    n = 1;
  )
$.update()

I tested the previous script with our internal Forest version, which is slightly different.

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #4 on: May 05, 2012, 09:24:21 PM »
hi.
 sorry but the second script doesnt work too.

attached file.

THANKS.

Roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #5 on: May 05, 2012, 09:49:14 PM »

It works fine here. What is the problem exactly ?

Remember that you have to set the Custom Edit first.

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #6 on: May 06, 2012, 08:04:13 AM »
Hi.
The second script does not change anything except a small change in proportion of the item. The first script you sent seems to work better but I have to click on the continu several times (see picture attached) as the number
The itemes, till I get out of this dialog box and then it deleted the multipile itemes ( in the tree editor the tree number stay the same as befor but i dont see them).

Thanks.

Roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #7 on: May 06, 2012, 09:22:16 AM »

The assertion error with the first script is normal, because it assigns an ID greater than the number of elements of the Geometry List. This bug is fixed in the second script.

I have not idea why the second script doesn't work for you ... are you using Forest 3.8.1 ?

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #8 on: May 06, 2012, 10:01:29 PM »
hi.

yes i am using the last  forest 3.8.1 and it does not work.

Thanks

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #9 on: May 07, 2012, 12:50:06 AM »

I have recorded a video using the second script. Please, tell me what changes in your case: http://youtu.be/4fzGhssu_O0

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #10 on: May 07, 2012, 12:19:48 PM »
Thanks for the video. but this is not what i mean.
i want that it will  not show duplicated people. for example if i have  4 peole ( in the geometry list) i want forest to creat just 4 itemes that each item is different.
is it possible?

Thanks again.

Roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #11 on: May 07, 2012, 12:34:17 PM »
Yes, that is what script does, but obviously you can't have more items that entries in the Geometry List.

So in the sample scene, try creating a Forest with exactly 4 items and then run the script.

Carlos Quintero
iToo Software

roysgi10

  • Jr. Member
  • **
  • Posts: 73
Re: different people
« Reply #12 on: May 07, 2012, 06:49:47 PM »
o.k

This great progress in my understanding.
Is there a possibility that FP
Producing exactly the number of itemes as
Number of objects that in geometry list?
Or should I delete the extra itemes manually one by one?

Thank you.

Roy

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: different people
« Reply #13 on: May 07, 2012, 06:55:54 PM »

It is better to remove the extra items manually. A script to generate the exact number of items would be significativally more complex.

Carlos Quintero
iToo Software