I’ve managed to implement my import script and have a nuber of Meshes in my scene (thanks for your help jms) and would like to apply a material to these.
Can anyone give me some examples of how to generate planes with a material applied? For example, I want to apply a specific colour to the walls and another colour to the ceiling. I would like to impart these materials to the planes as they are generated.
However, when I insert this code into my script I get an error:
‘AttributeError: addmaterial’
What I want to do is to generate a room based on coordinates from an AutoCAD file. I need the ceiling and walls to have different colours and texture, etc.
What I want to do is to assign all ceiling tiles a texture as they are created so that I can manipulate the materials in blender