Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: TATproductions on July 22, 2013, 05:26:29 PM

Title: Material optimizer from script
Post by: TATproductions on July 22, 2013, 05:26:29 PM
Hello there

I'm trying to make a tool to manage multiple forests.
Is there a way to access material optimizer tool from script to execute it on multiple forests ?
It's the only options hard to find.

Thanks !
-pingus-


http://www.tatprod.com/ (http://www.tatprod.com/)
Title: Re: Material optimizer from script
Post by: iToo on July 22, 2013, 05:48:05 PM
To apply the optimizer to several Forest objects, just use it from Forest Tools (Utilities panel).

But if you want to launch it from your script, the optimizer is located at <maxdir>\Scripts\forestpack\optmat.mse. It is applied the current objects selection.
Title: Re: Material optimizer from script
Post by: TATproductions on July 22, 2013, 07:02:01 PM
Indeed we can use forest tool, but i'd like to recreate that button to make all tool in the same panel ;)

Btw, how do i access optmat.mse ? looks like it's an encrypted file.
Should i   "fileIn"   it ?

Thanks for support & for this great plug !
Title: Re: Material optimizer from script
Post by: iToo on July 22, 2013, 07:36:37 PM
Sorry, i forgot you need the function name, besides the script file. Please, use the following code:

try(destroyDialog ForestPackOptmatRollout) catch(); fileIn "forestpack\optmat.mse"; createDialog ForestPackOptmatRollout

Title: Re: Material optimizer from script
Post by: TATproductions on July 23, 2013, 10:38:04 AM
yey, it's working !

thanks