Skip to main content

I have simply transformed an IFC file to OBJ format, but the default result is that everything has the same flat grey colour. I notice that I can edit the created "materials.mtl" file afterwards to change the different material types, and when I then import the created OBJ file into Blender, I see that the new colours are there. I would like to automate this however, for example making all walls a certain colour, all floors a certain colour, etc., or even changed their colour based on attributes. Is this possible? I see under the OBJ Writer parameters that I can specify a custom Material Library File, but I don't have one to start and I would prefer to simply generate it dynamically, just with the colours for each feature that I specify. How can I do this?

 

I tried using a ColorSetter transformer just after reading some specific feature types but that didn't do anything.

Hi @iboates​ ,

 

Please use the GeometryColorSetter transformer in place of the ColorSetter. This transformer is designed to create color textures on 3D geometries.

 

If you want to set image textures on the features, you can use the AppearanceSetter transformer.


Hi @iboates​ ,

 

Please use the GeometryColorSetter transformer in place of the ColorSetter. This transformer is designed to create color textures on 3D geometries.

 

If you want to set image textures on the features, you can use the AppearanceSetter transformer.

Thanks, that is what I needed


Reply