Itoo Software Forum

Poll

Custom ID in FP3

IDs in FP3
0 (0%)
Probability Button
0 (0%)

Total Members Voted: 0

Author Topic: custum id in fp3.02  (Read 3014 times)

FD8321

  • Newbie
  • *
  • Posts: 6
custum id in fp3.02
« on: August 28, 2008, 03:39:49 PM »
Hi,
some questions about the workaround with this fantastic plug  :)

Is there e possibility to select ids within the fp3?
I have created several trees with the custum edit button. To give them different materials i need to check the subtree "trees" an select some trees and give them an id according to the geomtrie list items. This works fine, but if i want to give them a different size i can not select the trees by the id.

another point ist the usage of the probability button in this case.  why cant fp3 use the probability button to set different materials (using custum edit)?

cheers
klaus

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3156
    • iToo Software
Re: custum id in fp3.02
« Reply #1 on: August 28, 2008, 07:35:02 PM »
Hi,

No, actually is not possible to select trees by ID (we would include this option for the next version).

As workaround, you can use Maxscript to modify the trees. This sample script set width=5,height=10 for all trees with geometry ID=2 for the selected Forest object:

for n = 0 to $.trees.count() do
  (
  id =  $.trees.getGeomID n
  if id == 2 do  ($.trees.setWidth n 5; $.trees.setHeight n 10)
  )
$.trees.Update()


About your second question, when you create a tree on Custom Edition mode, the plugin chooses a random ID based on the probabilities defined on the geometry list. If you want to randomize all IDs, then use the "Randomize Geometry" button... what do you want to do exactly ?

Carlos Quintero
iToo Software

FD8321

  • Newbie
  • *
  • Posts: 6
Re: custum id in fp3.02
« Reply #2 on: August 29, 2008, 02:12:41 PM »
well,
thanx for the script, that works.
..... to the second
Rondomize button is great, maybe my work arround was wrong  :-\

cheers
klaus