Itoo Software Forum

Author Topic: Scripts for Forest Pack  (Read 367961 times)

zules

  • Jr. Member
  • **
  • Posts: 60
Re: Scripts for Forest Pack
« Reply #45 on: March 14, 2020, 10:22:02 PM »
Hello,
does somebody know a tips/script to select all the geometry object of a FP object easily ?
It will be useful to create masks in Corona from selection for exemple.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #46 on: March 16, 2020, 10:02:11 AM »
Fixed some issues with FP_Toolbox script(thanks RealViz), also added selection->Dependencies. Hopefully that is what zules was asking for.
Rokas

zules

  • Jr. Member
  • **
  • Posts: 60
Re: Scripts for Forest Pack
« Reply #47 on: March 16, 2020, 07:04:47 PM »
Thanks I will have a look !

RealViz

  • Sr. Member
  • ****
  • Posts: 438
    • RealViz
Re: Scripts for Forest Pack
« Reply #48 on: March 17, 2020, 02:34:53 PM »
Thanks Rokas! Works well like Corona virus :-D

TheMan

  • Newbie
  • *
  • Posts: 6
Re: Scripts for Forest Pack
« Reply #49 on: April 02, 2020, 05:47:09 PM »
Hello Forest people,

I wrote one script for myself to Select multiple Forest Objects along with their dependencies.

Select Dependent objects.
(I didn't know that this thread exist and Rokas already wrote a script for it. )

I invite you guys to try mine anyway, it'll only work for Forest Pack, but I promise that mine is FASTER.
(Edit: I found out later that my script will only work faster if your 3ds max tab selection on the right is set to Modify tab. Other than that, they'll both with as fast as each other.
Edit2: I believe Rokas already updated his script, so all the speed issue is gone. Now both our script is as fast as each other, but his will also support Railclone. So, go for his! haha.)




**Note
- The one called DragNDrop is to drag it in the viewport to execute the script.
- The one called Macro is to install the script. Customize > The Man Script > ForestPackDependencies.
- Both scripts do the same thing.
« Last Edit: April 04, 2020, 10:21:09 PM by TheMan »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #50 on: April 02, 2020, 07:06:37 PM »
Hi The Man

Your script prorduces an error:


Maybe You forgot to declare "TM_ForestObjectSel" array ?

With that line added script does not error, but it fails to select all dependencies, and what is more drops other items that were in the initial selection.
Rokas

TheMan

  • Newbie
  • *
  • Posts: 6
Re: Scripts for Forest Pack
« Reply #51 on: April 02, 2020, 08:38:44 PM »
Hi The Man
Your script prorduces an error:
Maybe You forgot to declare "TM_ForestObjectSel" array ?
With that line added script does not error, but it fails to select all dependencies, and what is more drops other items that were in the initial selection.

Oops! that for loop is not needed anymore and the selection drop is gone. All fixed! Thank you Rokas.  ;D

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #52 on: June 09, 2020, 02:01:08 PM »
new ForestPack toolbox version:

v1.3
added Geometry List naming utility.



You can batch remove first (->) or last (<-) characters from the items name:


You can batch edit names using %% with numbering:


P.S. script automatically renames names in FP rollout. So after each rename rollout must be refreshed.
If there are many items You can speed up process by deselecting ForestPack or going out of Modify menu.

If wanted You can rename scene objects to reflect the changes You did in FP names.
« Last Edit: June 09, 2020, 02:46:41 PM by Rokas »
Rokas

RealViz

  • Sr. Member
  • ****
  • Posts: 438
    • RealViz
Re: Scripts for Forest Pack
« Reply #53 on: June 09, 2020, 03:27:06 PM »
Thanks! Rename is good to keep scene clean!

zules

  • Jr. Member
  • **
  • Posts: 60
Re: Scripts for Forest Pack
« Reply #54 on: June 22, 2020, 05:51:42 PM »
Hello,
thank you for those updates !! Very useful !

Would it be possible to add options to manipulate Camera setting inside selected/all FP object ?
Like :
- Clear all camera
- Auto assign camera
- Maybe also the Area menu for Limit visibility, clipping plans...

Also, any idea if a script exist for creating mask (Cmask in my case) from all Geometry object from a FP object ?
Will help for PS adjustement..

Thanks !

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #55 on: June 25, 2020, 09:41:11 AM »
Update FP Toolbox.
Added batch edit camera settings.
Rokas

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #56 on: June 29, 2020, 09:12:35 AM »
Update ForestPack toolbox
Added batch Clear Material option

Rokas

Kerezsi

  • Newbie
  • *
  • Posts: 7
Re: Scripts for Forest Pack
« Reply #57 on: July 17, 2020, 12:57:34 PM »
Hi,

Is there a way to open a library preset in a forest object with maxscript?
The "scatalog" interface doesn't seem to work for me.
I'm trying to automate the thumbnail rendering for forest presets.

For single models I already solved this: I read the maxfilename and modelname from the library index.xml, then merge and render it in my own template.

Laszlo

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #58 on: August 27, 2020, 08:20:23 AM »
As suggested here.

ForestPack Toolbox v1.6
Added:
dependencies->    
  • move to "forest_templates" layer
  • clean "forest_templates" layer

« Last Edit: August 27, 2020, 08:40:44 AM by Rokas »
Rokas

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #59 on: September 29, 2020, 08:58:59 AM »
As suggested here.

ForestPack Toolbox v1.7
Added:
Geometry->   
Delete some scattered items over the specified limit.



It can be slow, please don't overdistribute too much.
Rokas