gfx = growfx name:"Tree_01" position:[10,10,0]
Converts this object to GrowFX version 2.x. This is only available in version 1.9.9 (final), which comes with GrowFX 2.x.
Save and Open preset files.
Updates the GrowFX internal caches and viewport display to account for all the changes made by other functions in this kit.
Generate a new random seed.
Adds a new path and returns the index of path, 0 if it failed.
Adds a new distributor to the indexed path, where <path_index_integer> is the index of the path. The 2 argument specifies the type of the distributor. Returns true if the addition was successful, false if it failed.
Adds a new direction modifier to the indexed path, where <path_index_integer> is the index of the path. The 2 argument specifies the type of the modifier. Returns true if the addition was successful, false if it failed.
Adds a new mesh builder to the indexed path, where <path_index_integer> is the index of the path. The 2 argument specifies the type of the mesh builder. Returns true if the addition was successful, false if it failed.
Adds a new After Mesh modifier to the indexed path, where <path_index_integer> is the index of the path. The 2 argument specifies the type of the modifier. Returns true if the addition was successful, false if it failed.
Deletes the specified path. <path_index_integer> is the path you want to delete. The order of paths is the order in which they are views.
Deletes the specified path. <path_name_string> is the name of path you want to delete. Returns true if path deleted, false otherwise.
Deletes the indexed distributor for the specified path, indexes are 1-based.
Deletes the indexed modifier for the specified path, indexes are 1-based.
Deletes the indexed mesh builder for the specified path, indexes are 1-based.
Deletes the indexed after mesh modifier for the specified path, indexes are 1-based.
Returns the number of paths.
Returns the number of distributors for the specified path, index are 1-based.
Returns the number of modifiers for the specified path, index are 1-based.
Returns the number of mesh builders for the specified path, index are 1-based.
Returns the number of after mesh modifiers for the specified path, index are 1-based.
Returns the indexed path, index are 1-based.
Returns the path by name, <path_name_string> is the name of path to find.
Returns the indexed distributor for the specified path, indexes are 1-based.
Returns the indexed modifier for the specified path, indexes are 1-based.
Returns the indexed mesh builder for the specified path, indexes are 1-based.
Returns the indexed after mesh modifier for the specified path, indexes are 1-based.
Returns the number of sequences. It equals the number of objects that are used in the distributors (the GrowFX icon, points, surfaces, etc.).
Returns the number of lines for the specified sequence, index are 1-based.
After calling this function, GrowFX generates a mesh for only the specified line, indexes are 1-based.
Resets the state of the previous function.
Specifies the name of the new cache file. Returns true if the file was successfully prepared, false if it failed.
Loads the specified cache file. Returns true if the cache file was found and loaded successfully.
Records the cache data of the given GrowFX object to the disk.
Resets the cache data.
Deletes the cache file from the disk.
Adds the specified path to the Starting path list, where <path_index_integer> is the index of the added path.
gfx = growfx name:"Tree_01" position:[10,10,0]
gfx.IconSize = 30
gfx.addpath "path01"
gfx.addDistributor 1 #distr "Distr1"
gfx.addModifier 1 #random "RandomDir"
gfx.path01.Distr1.DistributorInPoint.count=10
gfx.path01.RandomDir.Max_Angle = 2
gfx.addpath "path02"
gfx.addDistributor 2 #path "Distr_on_path01"
gfx.path02.Distr_on_path01.addstartpath 1
gfx.Update()
gfx.SavePreset "d:\mytree.gfx"
showproperties gfx.path02.Distr_on_path01