Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

Idea for a rapid-floorplan script?
show user profile  Dejitarujin
I've got an idea for a scripted modifier, but, after examining the commands MAX sends through the listener, I'm not sure where to go.

The idea is this. You have what amounts to a plane, that is divided in a few places, with an Edit Poly modifier (go on, give it a try if you need a visual helper ;). The scripted helper would first select all the edges. Then, it would Chamfer them by a user-set value, giving two segments to leave a center-line (this is where Edit Poly's chamfer goes awry). At that point, it would select all the new faces it made, and extrude them, presumably also by a user-set amount. But it would be some sort of after-effect, not affecting the original geometry, much like the Lattice modifier.

This would effectively leave you with rooms. Automatic rooms, at that. To make any changes, you'd go back to the Edit Poly modifier below the scripted modifier, and just drag vertices/edges around to create rooms of whatever size and shape you want. Adding and removing edges would add or remove the whole wall, just like that. And, if you use Add Vertex, you could create breaks in the edges (without making new edges) that would turn into additional vertical edges in the walls, which could easily be deleted to make doorways and windows.

Granted, I'm not sure how useful this would be - I can't claim my needs are typical :P It might speed up architectural visualization a bit, and possibly some sort of level design... Either way, any tips on such a thing? Or links if it already exists?

EDIT: Ah-ha! Select all faces; Inset, By Polygon, half whatever one wants the wall thickness to be; Select Inverse; Extrude by desired wall height (possibly a few times to create horizontal divisions where window and door frames go). That is the exact effect I want to achieve - aside from the fact that the exterior edges don't go anywhere, but hell, beggars can't be choosers.

Now, a script for that alone should be well within my grasp. Only problem is, it's not a modifier with its own options, and far more importantly, it's not active. If you have that in its own Edit Poly, and the wall-edge structure is in an Edit Poly beneath it, you can move edges and vertices around just fine, but adding or removing anything only screws up the one above it.
Specialty: Non-organic modelling and effects.
Setup: 3D Studio 2010 with finalRender.
Rig: No, no I can't.
read 553 times
2/24/2009 11:17:43 PM (last edit: 2/24/2009 11:32:10 PM)
show user profile  Bolteon
writting modifiers are quiet a different story then writting maxscript. just a heads up.

-Marko Mandaric

read 541 times
2/25/2009 12:22:45 AM (last edit: 2/25/2009 12:22:45 AM)
show user profile  TimTamFin
I'm not sure if this helps, but CLICK HERE it might give you alternative ideas.

read 534 times
2/25/2009 12:34:41 AM (last edit: 2/25/2009 12:34:41 AM)
show user profile  Dejitarujin
Well, normally I'd say I could handle a bit of C++ programming, but since I have Design (without the SDK) that's a bit more of a problem ;)

And that idea with the shell modifier might have something - based on two modifiers to do most of it, which would react to edits in real-time. But then the issue is, it doesn't seem to support internal divisions, and it needs Shell after manually deleting some polygons. The latter of which can probably be taken care of by extruding downwards instead of up (leaving the floor), but the former...

Fortunately, I have discovered that Volume Select will retain a full selection even when something is added or subtracted in a previous modifier, so that's some progress.
Specialty: Non-organic modelling and effects.
Setup: 3D Studio 2010 with finalRender.
Rig: No, no I can't.
read 526 times
2/25/2009 1:04:38 AM (last edit: 2/25/2009 1:04:38 AM)
show user profile  Dub.
You can write scripted modifiers.

Look it up in the maxscript docs.

read 514 times
2/25/2009 1:43:16 AM (last edit: 2/25/2009 1:43:16 AM)
show user profile  Garp
Sounds a lot like what you'd do with an editable spline with an extrude modifier on top and show end result turned on.
You just edit the spline instead of a plane.

read 493 times
2/25/2009 8:00:52 AM (last edit: 2/25/2009 8:00:52 AM)
#Maxforums IRC
Open chat window