ItooSoft Logo Welcome, Guest. Please login or register.
May 26, 2013, 12:17:30 am
News:

Itoo Software Forum  |  Forest Pack  |  Forest Pro (*)  |  different people « previous next »
Pages: [1] Print
Author Topic: different people  (Read 1120 times)
roysgi10
Newbie
*
Posts: 23


« on: May 04, 2012, 10:59:01 am »

Hi.
is it possible to make  one forest that each plan represent different character (see attachement?) if yes- how?

Thanks.

Roy


* cam(11).jpg (291.97 KB, 1500x995 - viewed 138 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #1 on: May 04, 2012, 11:12:28 am »

Yes, using Custom Edit mode and Maxscript:

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

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

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

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #2 on: May 04, 2012, 02: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


* Clipboard-1.jpg (155.6 KB, 498x486 - viewed 90 times.)

* Clipboard-2.jpg (281.65 KB, 1263x718 - viewed 112 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #3 on: May 05, 2012, 02:28:14 am »

Please, use this script:

Code:
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.

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #4 on: May 05, 2012, 02:24:21 pm »

hi.
 sorry but the second script doesnt work too.

attached file.

THANKS.

Roy

* forest_people.rar (434.45 KB - downloaded 49 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #5 on: May 05, 2012, 02:49:14 pm »


It works fine here. What is the problem exactly ?

Remember that you have to set the Custom Edit first.

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #6 on: May 06, 2012, 01: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


* Clipboard-2.jpg (407.88 KB, 1670x1006 - viewed 88 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #7 on: May 06, 2012, 02: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 ?

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #8 on: May 06, 2012, 03:01:29 pm »

hi.

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

Thanks
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #9 on: May 06, 2012, 05:50:06 pm »


I have recorded a video using the second script. Please, tell me what changes in your case:


Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #10 on: May 07, 2012, 05:19:48 am »

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
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #11 on: May 07, 2012, 05:34:17 am »

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.

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
roysgi10
Newbie
*
Posts: 23


« Reply #12 on: May 07, 2012, 11:49:47 am »

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
Logged
iToo
Administrator
Hero Member
*****
Posts: 2152


WWW
« Reply #13 on: May 07, 2012, 11:55:54 am »


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

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
YabbGrey By Nesianstyles | Buttons by A.M.A