Help modeling urban block using ruby
-
Because i do not have experience in a ruby scripting language i want to ask can this could be done using ruby through Sketchup:
On my studies of architecture, I have an assignment to make tool within a sketchup to model a urban block, and with that tool I must control certain parameters like type of block (predefined structure), number of buildings in that bolck and height of a building. This are parameters which user must define when he open this tool, before he get a final result - a sample of urban block. Is there a way to do this with sketchup and ruby or i must search for help in other programs...
Thanks! -
This is very possible in Ruby. Its also possible to a certain degree using Dynamic Components. I made a dynamic building that comes fully equiped with a fron yard, sidewalk, curb, backyard, different trims, colors, details, and more. Then when you scale it to make it wider, it actually makes copies of the buildin next to eachother. So you could scale it to 300' wide and you would end up with a 300 foot wide block of these buildings. I did not include a way to change the width of the buildings, but it is totally do-able. I made it so each one can change its height, basement, stairs, more and more. It was a project I did just to learn a lot of Dynamic componeont functions. Check it out here:
Sorry, I wasn't making videos of everything back when I made the DC so there is no video tutorial. I could make one to show how to interact with that model if you would like though.
And if DC's don't have enough flexibility, Ruby can certainly do what you want. It is very capable. But the menu inputs might require you also learn a little bit javascript for webdialogs (still over my head).
Chris
Advertisement