Toggle navigation
Login
Register
Itoo Software Forum
»
Forest Pack
»
Forest Pro (*)
»
Material optimizer from script
« previous
next »
Print
Pages: [
1
]
Author
Topic: Material optimizer from script (Read 1994 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/
Logged
http://tatprod.com/
https://www.itoosoft.com/stories/the-jungle-bunch
iToo
Administrator
Hero Member
Posts: 4396
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.
Logged
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
»
Logged
http://tatprod.com/
https://www.itoosoft.com/stories/the-jungle-bunch
iToo
Administrator
Hero Member
Posts: 4396
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
Logged
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
Logged
http://tatprod.com/
https://www.itoosoft.com/stories/the-jungle-bunch
Print
Pages: [
1
]
« previous
next »
Itoo Software Forum
»
Forest Pack
»
Forest Pro (*)
»
Material optimizer from script
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length