So... I manged to write a mel script that will fix the tree issue for us.
It took... a good few hours of googling, trial and testing, of different methods that I could think of, and work out the syntax for. @_____@
The method I made work, (and is actually the simplest) basically goes through every tree and sets the bounding box type and then the file location for the mental ray proxy.
Here it is:
int $i;
string $filePath = "scenes\ShapeTestMI.mi";
for($i=1; $i<=865; ++$i)
{
eval("setAttr TreeType1Proxy__" + $i + ".miUpdateProxyBoundingBoxMode 1");
eval("setAttr TreeType1Proxy__" + $i + ".miProxyFile -type " + "\"string\"" + " $filePath");
}
I'll set this up when I get into University, but i'm putting it up here incase you need it sooner.
Change "scenes\ShapeTestMI.mi" to the file location.
Change 865 in "for($i=0; $i<=865; ++$i)" for additional trees.
ALSO! TreeType1Proxy__27 and 28 are missing, and will cause the script to stop.
So duplicate and rename two trees to 27 and 28 to solve this.
No comments:
Post a Comment