Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Ramboll on March 20, 2013, 08:38:15 AM

Title: MAX script and forest
Post by: Ramboll on March 20, 2013, 08:38:15 AM
Hi

What is the proper way (if at all possible) to initialize a Tree-Mode Forest Pack 4 object from Maxscript? Based on our own scripts, that were working for previous versions of FP, we’ve made an attempt at an adapted version for FP4. Basically this:

tmp_ground=plane pos:[0,0,0]
FP4_obj=forest_pro mode:1
FP4_obj.surface=tmp_ground

The surface part was added some time ago, as it appeared to remedy a similar problem in past versions, but this time around it doesn’t seem to do anything.

Attempting to add trees to the object created in this manner results in a ** system exception ** message if using FP4_obj.trees.create, or a complete MAX shutdown if using the Edit Mode\Add through the regular user interface.
Title: Re: MAX script and forest
Post by: iToo on March 20, 2013, 09:56:11 AM

The surfaces are now stored in "surflist", that is an array type. Unfortunately it is not possible to initialize this parameter from Maxscript.

Anyway, it should work just removing the surface line, and assigning the surface manually later. Did you ty it ?