Hey T,
One unrelated noob question about scripting. How did you debug this error? Did you use french max and recreated the error? Then let maxscript listener to tell you what he did not like and use that info to remove the bug?
Hey T,
One unrelated noob question about scripting. How did you debug this error? Did you use french max and recreated the error? Then let maxscript listener to tell you what he did not like and use that info to remove the bug?
Hey Poirot,
The script I’ve put out for people to download is encrypted…one of the things that happens when a person runs into an error with an encrypted script is that the error message will pop up, but no specific details will show up in the maxscript listener. I think Autodesk implemented this so that people don’t use error debug information to reverse-engineer encrypted scripts.
So, to see the details error info, I had to run the non-encrypted version myself (because I don’t want to make the non-encrypted version available for download) and reproduce the error over here.
When I did that with the french 3dsmax demo, I found that the problem was caused my modifier names. For example, in english max, if an object has a Material modifier on it, its settings can be accessed with:
$.modifiers[#Material]
However, because in other-language versions the names of modifiers are different, that produces an error. So I had to resort to using numerical indexes, instead of name references. So the corrected code for that type of thing would be:
$.modifiers[1]
if the Material modifier was at the top of the mod stack.
Hey Ivan,
Do you remember what settings caused the error? Or did it just happen right away?
it happen right away when i clic on “Generate” the first time witout touching anything…
next update will have them fixed
Thank you very much… ;-)))
Have a good day…
FANTASTIC!
Just a question. I’m not a Maxscript user, but why not a plug-in instead a maxscript? Like good old Polyboost. In the first time Polyboost was in Maxscript language, next, in the last release, is a C++ plug-in (much faster and stable).
Oh yes, that would be great, my mathematics tend to zero in areas above 1+1:blush:
Thanx again for your effort creating such script!
keep on having fun
Building Generator v0.52 is out!
http://tysonibele.com/Main/BuildingGenerator/buildingGen_v052_01.mse
But wait…what could possibly be new in this version that wasn’t in the version released…uh…yesterday?!
New feature!:
-A brand new material setup system has been added into the material tab. This new system gives you total control over values like reflection/opacity/specular/glossiness in the materials that will be generated for your buildings…also…there is now the ability to create either Standard Materials, or Vray Materials….and this can be modified on per-ID basis…meaning you can easily do things like…set all your windows to be reflective Vray materials, and keep the other objects as standard materials.

Bug fixes:
-Errors cropping up in French versions of max, while using the script, have been fixed
-Some objects were getting improper MatID assignments. This has been fixed.
Have fun, and remember to notify me of any bugs you find or suggestions you have!
By the way…check out this awesome image made by Diego Munhoz Ferreira using version 0.45 of the script! :

This is beyond anything I could have thought would be possible with maxscript…this is a truly amazing tool, and you’re extremely generous to give this out for free!
You crazy speedy gonzales, slow down. Every time people manage to download your script, you come out with new version 
I think it is a cool idea. People should start posting all sorts of city pictures that they have managed to do with Building Generator.
Originally Posted by bonestructure
[i]…Some things I'd like to see - A user's guide to explain the various options for those of us who are not so facile with math.
[/i]Any volunteers out there who wanna start writing manual to this thing 
Hi Ivan,
I have not had time to try the version 5 … ;-)))
But “ô miracle”, version .52 works at least on the first attempt on the French version …
Congratulations and thank you …
I’m going to continue to explore this afternoon on the fr …
Good day
I get an error: ‘-- Unknown property: “rType2” in Rollout:materials’ trying to select the MR Proxy option.
Procedure: Run Script -> tick on “Combine Meshes” and “Generate MR Proxy”
Max 2009 SP1, Building Generator v0.52.
Awesome tool, I am very impressed.
Can you add support for MentalRay Arch & Design material too, please. Many of us use MentalRay.
I can’t wait to get home and give this a try.
Oops! I know exactly what caused that…forgot to remove some code after shifting things around in the material settings.
It’s fixed now, grab it here:
http://tysonibele.com/Main/BuildingGenerator/buildingGen_v052_01.mse
Hey Ivan,
I'll put this post in the bugs that I find in the French version of As of my testing (buildingGen_v05_50):
– With the doors all is well unless I select the “Lights”
–Propriété inconnues “inner_amount” dans Shell:Coque
– With the windows it is the same; Right unless i select “Lights”
–Propriété inconnues “inner_amount” dans Shell:Coque
Heh…wow I didn’t realize that the French version of max is soooo different from the english version with all of its namings :eek: You’d think that whoever designed maxscript would have just kept the names the same for all language versions.
I’m a bit busy now because some renders finished for some work I’m doing, but I’ll try to go through and fix these errors later 
Hey there, i have to say, your script has a lot of potential and if any script deserved a front page i think it would be this one!
I get this error when i load the preset file you posted, i have also got the error when creating buildings of my own. The error completely locks out any function from working properly and the result is i have to reload the script. I dont know if its something i am doing or its a bug.
“–Argument count error: chamferVerts wanted 4, got 3”
Also, i dont know if you have a help file or some kind of information on what bits of the ui do what in terms of functionality?
Great script, thanks for posting it.
Frubes
What version of max are you using, frubes? Also, is there a particular setting you turn and that causes that to happen, when you’re not using the preset file, or does it happen right away?
edit: I examined the script and found that there is no “chamferverts” function even being used by the script. Is it possible you have a plugin or other script installed that could interfere with certain modelling functions of max?
Try running this and see what happens:
obj = teapot()
converttopoly obj
polyop.chamferedges obj #all .4
update obj
Does it generate an error?
Incredible script ivanisavich. Thanks a lot for coding it for free.
Just one question.
All the builds I generate have the same materials.
Are you using just the materials pack you suggest to download?
Thanks in advance.
Keep this nice work.