Itoo Software Forum

Author Topic: Material optimizer from script  (Read 1969 times)

TATproductions

  • Newbie
  • *
  • Posts: 43
Material optimizer from script
« 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/

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Material optimizer from script
« Reply #1 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.
Carlos Quintero
iToo Software

TATproductions

  • Newbie
  • *
  • Posts: 43
Re: Material optimizer from script
« Reply #2 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 !
« Last Edit: July 22, 2013, 07:04:35 PM by TATproductions »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: Material optimizer from script
« Reply #3 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

Carlos Quintero
iToo Software

TATproductions

  • Newbie
  • *
  • Posts: 43
Re: Material optimizer from script
« Reply #4 on: July 23, 2013, 10:38:04 AM »
yey, it's working !

thanks