Itoo Software Forum

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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #30 on: June 20, 2018, 01:35:27 PM »
A script that sets Display > Viewport to
* Mesh
* Proxy
* Points-cloud

Please use included  ForestPack lister for this.


edit:
Also this script seems to work (thank You for edit Haider)
Quote
for obj in selection do if (classof obj == Forest_pro) then obj.vmesh = 0
« Last Edit: June 22, 2018, 04:01:27 PM by Rokas »
Rokas

leonardo.afanador

  • Newbie
  • *
  • Posts: 34
Re: Scripts for Forest Pack
« Reply #31 on: June 20, 2018, 02:19:40 PM »

Haider of Sweden

  • Newbie
  • *
  • Posts: 47
    • Portfolio
Re: Scripts for Forest Pack
« Reply #32 on: June 22, 2018, 03:49:16 PM »
Please use included  ForestPack lister for this.


I know there are other ways than scripting to do what I ask for, but the script will act much faster than first opening a UI and then making choices. So I went with this solution and thank you very much for your help (I switched out the Railclone_Pro to Forest_Pro to make it work

Code: [Select]
for obj in selection do if (classof obj == Forest_pro) then obj.vmesh = 0

it exists
http://www.scriptspot.com/3ds-max/scripts/v-ray-proxy-tools

But this one doesn't work for Forest Pack, does it? Have you tried? (I haven't tried it)
//Haider

Frag Studio

  • Newbie
  • *
  • Posts: 3
Re: Scripts for Forest Pack
« Reply #33 on: August 31, 2018, 04:28:59 PM »
Thank you very much Paul, that script saved me lot of time yesterday.

Everyone sharing script like you are heroes. At one moment in one place, you're one artist's best friend.

DT

  • Jr. Member
  • **
  • Posts: 87
Re: Scripts for Forest Pack
« Reply #34 on: November 08, 2018, 10:27:20 AM »
InstancesToForest



This script looks in the scene to find instances of the objects in Forest Pack's item list. When it finds them they're added to FP, matching the position, rotation and scale.

To use this script:
- Create a new FP object
- Add an object/s to Forest Pack's items list, these are the things with instances in the scene that you'd like to convert to FP geometry.
- Change to Tree Editor mode
- With the FP object still selected, press Instance To Forest.

Here's a video of it working

<iframe width="560" height="315" src="https://www.youtube.com/embed/CuQbinj-U5Y" frameborder="0" allowfullscreen></iframe>


Note that this is an early version. At the moment the Forest Pack object must be at the world origin (the script changes this automatically though). I'd also like to add the ability to append the instances (at the moment it overwrites the current scatter),an option to automatically find instanced objects and add one of them to the items list (great for automatically converting large scenes), and an option to delete the original instances once added to FP.

I hope it's useful for some people.

Many thanks!

Paul.

Does this still work with the latest Forest Pack? I've placed Instances of Xref Objects with object paint. When using this script it adds the right amout of instances to the forest pack but they are all at the same position (first instance placed).

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Scripts for Forest Pack
« Reply #35 on: February 20, 2019, 09:57:20 PM »
I found Surface and Object Assigment but can`t see Area Assignment?
 

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #36 on: October 24, 2019, 10:33:55 AM »
Select Dependent objects.

Usage:
Select Your ForestPack Pro / RailClone Pro objects(can be mixed among other items) and running this script will add dependent objects to Your selection:


edit updated to make it work faster if max is Modify Tab.
« Last Edit: April 03, 2020, 08:08:25 AM by Rokas »
Rokas

QL2487

  • Newbie
  • *
  • Posts: 18
Re: Scripts for Forest Pack
« Reply #37 on: December 06, 2019, 04:16:17 PM »
Hello,

Can anyone help us with a script that replaces the VRayMultiSubTex into the Forest Color for all slots, not just for Diffuse?

Thanks!

KD4391

  • Jr. Member
  • **
  • Posts: 56
Re: Scripts for Forest Pack
« Reply #38 on: January 10, 2020, 04:27:38 AM »
Hi guys - it would be super awesome if you could change all forest pack display to a specific prpxy type - ie thin box.

Also, is it possible to include or provide a script to change all selected forest pack assinged surfaces to 'AUTO'

Cheers

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #39 on: January 10, 2020, 01:07:58 PM »
Hi guys - it would be super awesome if you could change all forest pack display to a specific prpxy type - ie thin box.

Also, is it possible to include or provide a script to change all selected forest pack assinged surfaces to 'AUTO'

Cheers

Hi.
See attached. This script works on selected forestPack objects. If none is selected then on all ForestPacks in the scene.
Hopefully. Please test it.

Rokas

KD4391

  • Jr. Member
  • **
  • Posts: 56
Re: Scripts for Forest Pack
« Reply #40 on: January 13, 2020, 04:38:57 AM »
Beautiful - very happy - thanks so much.
Hi guys - it would be super awesome if you could change all forest pack display to a specific prpxy type - ie thin box.

Also, is it possible to include or provide a script to change all selected forest pack assinged surfaces to 'AUTO'

Cheers

Hi.
See attached. This script works on selected forestPack objects. If none is selected then on all ForestPacks in the scene.
Hopefully. Please test it.



Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Scripts for Forest Pack
« Reply #41 on: March 06, 2020, 11:41:05 AM »
New Utility with few functions as requested in our forum before.

Edit .
fixed: operations with multi forests
added: selection->Dependencies



Color ID from Wire Color ->


Only 1 of each Geometry ->



Remove Unused Items ->
« Last Edit: May 04, 2020, 01:44:23 PM by Rokas »
Rokas

Terri Brown

  • Full Member
  • ***
  • Posts: 114
    • Terri Brown 3D
Re: Scripts for Forest Pack
« Reply #42 on: March 06, 2020, 11:50:04 AM »
Awesome! Thanks a mil

RealViz

  • Sr. Member
  • ****
  • Posts: 302
Re: Scripts for Forest Pack
« Reply #43 on: March 11, 2020, 06:58:26 AM »
I getting this error when runing script :-(

With One Forest obj. it works. With more no...
« Last Edit: March 11, 2020, 03:07:29 PM by RealViz »

KD4391

  • Jr. Member
  • **
  • Posts: 56
Re: Scripts for Forest Pack
« Reply #44 on: March 12, 2020, 01:30:16 AM »
Hey Rokas

That is awesome!  Excellent!

Can i make a request if possible?  I would love it if you could select multiple forest packs and then exclude (or include) a spline from all thos eselected multiple forests if that makes sense?