Selecting specific objects with a script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I'm working on a 3D project where I want to generate a simple model of a house, like this:
House Model
I did this mainly with a quick sweep and a couple of extrusions. So far, with only a script, I can get as far as the first face and the sweep path:
But to go further I have to invoke the sweep command, then select the surface and then the path. I don't know if I can do this with a script. Here are my questions:
(A) Can I select these objects within a command (like sweep) with a script?
(B) If not, is there a way to automate actions like this? Eventually I wanna randomly-generate different house layouts.
(C) If I can do this with a script, will I inevitably keep running into script limitations in case I want more complicated layouts, like 2-story houses?
If scripts aren't as limited as they seem then I'd do the random-generating business with a program that would spit out a unique script per randomized house. But maybe there's a simpler way, so...
(D) Am I missing a big obvious method of doing this?
Any suggestions and insights are much appreciated. Thank you!