material = NoeMaterial(name, "")
material.setTexture(texName)
matList.append(material)
texList.append(texName) # or loaded texture // path to texfile etc whichever works
rapi.rpgSetMaterial(material)
rapi.rpgCommitTriangles(*args)
mdl = rapi.rpgConstructModel()
mdl.setModelMaterials(NoeModelMaterials(texList, matList))




'''
class TextureUVSettings(bpy.types.PropertyGroup):
    u_compIdx= bpy.props.IntProperty(name="Texture U-idx", default=0, min=0, max=3,)
    v_compIdx= bpy.props.IntProperty(name="Texture V-idx", default=1, min=0, max=3,)

class TextureUVSettingsPanel(bpy.types.Panel):
    bl_idname = "OBJECT_PT_hello_world"
    bl_label = "Hello World"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    #bl_context = "object"
    #tttt = BoolProperty(name="ttttt", description="ttttttt", default = False,)

    def draw(self, context):
        layout = self.layout
        self.layout.label(text="Hello World")
        #row = layout.row()
        #row.prop(self, "tttt")
'''
