Here's another wee widget, a job I'm working on has a load of trees in it and one of the guys here used the aec trees in 3ds max 7 (objects > aec objects > foliage) which use a plane mapped with a leaf picture and an opacity map which is pretty slow in vray so I wrote a little script that copies a selected object to the position and orientation of the leaf faces - It's a hell of a lot quicker to render geometry than opacity maps. Here's the workflow:
Take a tree object and convert it into an editable poly object.
Go into polygon mode and find the material id of the leaves / flowers / whatever you want to replace.
Make a little bit of leaf geometry to replace the flowers with.
Select your editable poly tree and run the script.
Set the replace id spinner to the material id of the objects you want to replace.
Pick the leaf object using the "pick leaf object" button.
Hit make leaves.
Wait for fuck ages.
You'll end up with a new editable mesh object with all of the leaves so you can now add a delete mesh modifier onto your editable poly tree to remove all of the old leaves. It's not the smartest of scripts and probably has loads of error situations so make sure to save your scene / do a hlod before you run make leaves.
I reckon the best way to use this is as a step to making vray proxy objects, I wouldnt try using it on multiple obejcts just yet.
Here's the script:
http://www.joconnell.com/stuff/Leaf_converter_0.04.ms
And the really snazzy swiss inspired interface:
Take a tree object and convert it into an editable poly object.
Go into polygon mode and find the material id of the leaves / flowers / whatever you want to replace.
Make a little bit of leaf geometry to replace the flowers with.
Select your editable poly tree and run the script.
Set the replace id spinner to the material id of the objects you want to replace.
Pick the leaf object using the "pick leaf object" button.
Hit make leaves.
Wait for fuck ages.
You'll end up with a new editable mesh object with all of the leaves so you can now add a delete mesh modifier onto your editable poly tree to remove all of the old leaves. It's not the smartest of scripts and probably has loads of error situations so make sure to save your scene / do a hlod before you run make leaves.
I reckon the best way to use this is as a step to making vray proxy objects, I wouldnt try using it on multiple obejcts just yet.
Here's the script:
http://www.joconnell.com/stuff/Leaf_converter_0.04.ms
And the really snazzy swiss inspired interface:
![](http://www.joconnell.com/stuff/leaf_convert_1.jpg)
Comment