Itoo Software Forum

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

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1680
    • iToo
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
iToo Software

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: 41
    • 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.

VIZIOEN

  • Newbie
  • *
  • Posts: 34
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

  • Full Member
  • ***
  • Posts: 228
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?