Tags:
t sounds like what is needed here is a feature to assign a SketchUp material to each face to match the layer of the face. If we did that for just one layer at a time, then you could set the transparency of the glass by layer.
There is a ruby, layers_materials.rb, which can help. It has a bug in the section which creates new layers to match the material names. But the function 'Match materials from layers'
Match materials from layers:
This command is intended to paint faces with the material with the same name than the layer
they belong to. If the material exists, both front and back material are set for each face. If the
material doesn't exist, the face is left unchanged.
If you glass in in layer "Glass 3", then you create a material with the same name, "Glass 3", and run 'Match materials from layers'. The faces in layer "Glass 3" will be assigned the material "Glass 3", which makes it much easier to change them.
'Match materials from layers' will assign materials to face in all layers if there is already a material with that name.
Try it out, and let us know if it works, and maybe we can add a similar feature to IRender nXt - with a dialog or wizard to make it easier to use.
We are probably not going to be able to support "color by later". We were able to do something like that several years ago, using a SketchUp Reader provided by SketchUp. But no one has had much success lately.
If you create the materials yourself, with the same names as the layers you want to convert, the attached .rb should work. Click on 'Convert Materials to Layer Names' on the plugins folder after you unzip it into the plugins folder.
Lets test if for one layer first:
1. Find the name of the layer you want to change
2. Create a new material with same name as the layer
3. Make the new material really noticeable for the test - e.g. red and 50% transparent
4. Run Convert Materials to Layer Names.
- It should work for everything in the later desired.
If it works well, you can try to convert several more layers.
- If you would prefer to simply convert all materials to match the layer names, let me know.
I added this feature to the .rb file - use the function: Create New Materials from Layer Names
- Alternatively we could only convert faces which do not already have a material.
If you have any problems, load the ruby console before you run it and send me the results from the ruby console.
Let me know if the .rb works for you.
We are adding this as a feature to IRender_nXt in the next couple of weeks:
Create Materials from Layer Names is used to create new materials based on layer names, and to assign these new materials to all faces in those laters.
This is valuable after loading a DWG file which will have layer names on all of the faces imported from AutoCAD or Revit. By assigning materials to match these names, you can easily change these materials.
This function is available on the nXt Setup Tab
Here is yet another version, which I posted to the SUC forum as well:
Put this in the plugins folder and give it a try.
After loading SketchUp, and importing a DWG file, select Convert Layer Names to Materials from the Plugins menu.
Works GREAT.
Tips: The layer names, plus a few extra ones (not sure yet why, but the same ones were created with the broken ruby, too), are produced in a Paint Bucket category called "In Model." Adjust the materials there and it works great. To make sure that the material name pops up as you hover over the materials, first click on whatever material name is at the top of the dialogue box. That kicks in the hover-over/show-name ability.
I have to work on getting all my Revit window parts on correct layers. For some reason, they're not separating all the glass from the frame & sash parts. I may have several windows from different genesises (is that a word?) though.
Works GREAT.
Tips: The layer names, plus a few extra ones (not sure yet why, but the same ones were created with the broken ruby, too), are produced in a Paint Bucket category called "In Model." Adjust the materials there and it works great. To make sure that the material name pops up as you hover over the materials, first click on whatever material name is at the top of the dialogue box. That kicks in the hover-over/show-name ability.
I have to work on getting all my Revit window parts on correct layers. For some reason, they're not separating all the glass from the frame & sash parts. I may have several windows from different genesises (is that a word?) though.
Al, is there a way for me to import my .ArMaterials into Sketchup?
I put the .ArMaterials Query in a new thread:
http://irendernxt.com/forum/topics/revit-armaterials-importing
I will put this latest comment there as well.
Geof Narlee said:
OMG, if you could port ArMaterials right into the 3D PDF...!
Geof Narlee said:
Al, is there a way for me to import my .ArMaterials into Sketchup?
Enter a phrase here to search the entire Render Plus web site:
© 2024 Created by Render Plus. Powered by