PDA

View Full Version : rendering a floorplan


cad3dfx
01-29-2003, 12:53 AM
I imported an Autocad floorplan into 3ds max4.2
and I want render it for use in an animation, but
that would mean that I'd have to click on each
and every line and make it renderable and give it
a decent thickness. Is there a script or something
that will allow me to do this globally.

I just need to make about 2000 lines renderable and
i'd rather not do that by hand. I'd like to keep the colors
the way they are too....?

thanks

TMortan
01-29-2003, 02:29 AM
Could you use it as a 2d map? If you could export it as an .eps and bring it in a paint program.

Dave Black
01-29-2003, 02:59 AM
Well, if my Autocad brain still works...

Autocad only has a few default colors usually. Right? Like, red, orange, white, yellow, green, cyan, and...magenta?

Ok, so let's say you have 10 colors.

Pick a line, say, a red one, convert it to an editable spline, then add the rest of the red lines to the espline. Now you probably have like 500 lines you can make renderable at once.

Just repeat for as many colors as you have, which hopefully are'nt that many.

Hope that's of help.

-3DZ

TMortan
01-29-2003, 04:20 AM
You have over 200 colors now 3DZealot.

When you import just make sure derive is set on layer or color and have everything else checked besides cap closed entities.

Then click on layers and turn them to splines and change thickness/renderable. You’ll only have to do it as many times as you have layers.

Dave Black
01-29-2003, 04:35 AM
200 Basic colors?

Wow.

I last used AutoCad professionally when it was in R14, then a little in 2000. In those you had a basic pallet, then colors you could custom define. Even then, though, you could really only distinguish 10 or 15 colors when on screen, and less against white velum.

Must have changed alot.

Anyhow, you're right about importing by layer. That should work well.

-3DZ

:D

TMortan
01-29-2003, 04:52 AM
Oh yeah you can have 255 colors, but your right on try to distinguish them from one another.

Dave Black
01-29-2003, 05:04 AM
Hehe...Thought I was going crazy.

I just assumed that he had only used a select pallet of colors for the line work, as that(in my day) was standard operating procedure. Alot of companies even had rules fro what colors you could use for different types of lines, dimensions, and callouts.

Eh. Ya know what they say...Assume makes and Ass out of U and Me...

hehe...

I'm such a dumbass.

-3DZ

:D

phil
01-29-2003, 05:21 AM
this should do the trick:

-------------------------------------------------

for i = 1 to selection.count do
(
selection[i].baseobject.renderable = true
selection[i].thickness = 2
selection[i].displayrendermesh = true
)

----------------------------------------------------

just select all your splines and then run this script (easy way to run it is to open up a new script window (maxscript, new script) copy this into it and then press ctrl + e to run it.

hope it helps.

ps, just change the thickness value to what you need, and delete the displayrendermesh line if u dont want to see the mesh in the vp.

TMortan
01-29-2003, 05:31 AM
You’re too hard on yourself 3dZealot:)

One of these days I’ll learn some maxscript (saves the above for later).

CGTalk Moderation
01-14-2006, 07:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.