Announcement

Collapse
No announcement yet.

Treeplugins + Maxscript ..??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Treeplugins + Maxscript ..??

    Hi all,

    Is there any way(workaround) to populate a scene with different treetypes by using a maxscript?

    The idea is to use a script which randomise the *treetype* and populate very different trees in the scene. Randomising onyx trees or max foliage isn't a problem, but it's not the same.

    any ideas?


    Some personal notes:
    We should ask Vlado to load onyx trees or max foliage trees (which i always prefer) as parameter files and generate the mesh in vray itself, instead using proxies...
    www.cgtechniques.com | http://www.hdrlabs.com - home of hdri knowledge

  • #2
    Trees

    I was playing with ItooSoftware yesterday and it s pretty neat, but uses maps instead of mesh. You can randomize size, shape, and color.
    Bobby Parker
    www.bobby-parker.com
    e-mail: info@bobby-parker.com
    phone: 2188206812

    My current hardware setup:
    • Ryzen 9 5900x CPU
    • 128gb Vengeance RGB Pro RAM
    • NVIDIA GeForce RTX 4090
    • ​Windows 11 Pro

    Comment


    • #3
      Itoosoft stuff can handle mesh also.
      mh

      Comment


      • #4
        but i want to randomise the "seed" and not the generated mesh.
        www.cgtechniques.com | http://www.hdrlabs.com - home of hdri knowledge

        Comment


        • #5
          Originally posted by Dschaga View Post
          but i want to randomise the "seed" and not the generated mesh.
          Sounds like you just need to select a bunch of trees and randomize their seed right? No problem... For instance if you're using stock 3ds Max trees and wanted to randomize their seed you'd select all the tree objects and type this in the maxscript listener (bottom left of your screen)

          Code:
          for obj in selection do obj.seed = random 1 10000000
          The above code in english basically says "look through the list of objects you have selected and change the object seed to a random number between 1 and 10000000."

          FYI - I don't have the onyx tree plugin in front of me right now so I can't check the exact syntax for it. If you select a onyx tree and type "show $" it'll show you the maxscript properties you can set and one of them will be seed or something along those lines... So, if for instance it says there is a property ".OnyxSeed" you would replace obj.seed in the code above to obj.OnyxSeed
          Christopher Grant
          Director of Visualization, HMC Architects
          Portfolio, ChristopherGrant.com

          Comment


          • #6
            I don't want to change the random seed , but the "gen seed":
            5 Birches, 4 Willows, and so on..
            www.cgtechniques.com | http://www.hdrlabs.com - home of hdri knowledge

            Comment

            Working...
            X