RickW... Fletch is back... :roll:
-
Hi Rick, Todd, all the crew!
We were trying to export a boat from SU to Acad format to eventually render it in VIZ.
in VIZ (in case you don't use it) you apply mats to your .dwg file using layers. So each seperate material has a corresponding layer you draw that object on in ACAD. Great.
in SU (as you are clearly well aware) you just apply materials... doesn't matter what layer is what.
SU exports it's layers to ACAD layers fine, but not textures.
you created "group by texture", you created "group by layer", can you help me create "groups on layer by texture?"
It would:
--create a set of layers named for the materials used in the scene (I believe they can't have spaces in them?! dots and underscores are fine)
--Then it would group all objects by material, (this step may not be necessary, but could be handy in some situations...)
--then place each group on the proper corresponding layer.I opened up all your "group by" scripts + the "put on layer" script thinking to myself... "come on Fletch, you can figure this one out"... then realized it's like reading Croatian... and for me, that means I recognize one word every 4 or 5 lines.
I need this for when I take a component someone has kindly shared (like that big fancy boat someone shared a while back) and I want to bring it into VIZ... any help w/ this would be appreciated. You'd probably be able to do this in about 5 minutes... I'd be working on it for about 5 years...
Right now of course the work around is group by texture, then create my own layers and pop the groups on the correct layers... but couldn't this be easily automated?
thanks a million for thinking it over, Rick.
-
Fletch,
How can I resist such a request? I'll put it on the list, and hopefully it will be faster than some other projects I've been working on - maybe even this weekend (though I'm not promising anything).
-
well, you rock, as always. I'll keep my ears/eyes open... thx.
-
Hi Rick, just checking to see if this one has slipped thru the perverbial 'cracks'?!
-
Hi Fletch and all,
Well, back from Croatia (wonderful country) I can read a little Croatian now
I just wanted to add that my script "layers_materials.rb" could help you do the job. It won't build groups but will create layers based on materials and put all entities on relevant layers in a matter of seconds.
Hope this helps
Dovidenja (Bye in Craotian) -
I modded my "GroupByMaterials" plugin to group by materials and put the group on a layer named for the relevant material. The new plugin is called (surprise) "LayerByMaterial" (unless there's a consensus for "LayerGroupByMaterial") and will soon be available at Smustard.
-
Bok, Didier, Hvala! (Croatian for "Bon Jour, Didier, Merci")
I will check out your script... and I look forward to seeing yours, Rick, I just looked and it's not there yet. -
Didier,
Your script works beautifully, thanks for the tip! -
Unfortunately the biggest drawback of all these match/group (by)layer/material- they don't work with the complex hierarchy (components nested in components)
Advertisement