Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_Wizards.py   PyPRP(Download)
                # Create a material
                matName = alcUniqueName(obj.name,0,0,"m");
                mat = Blender.Material.New(matName)
                matmode = mat.getMode()
                mat.setMode(matmode)

src/p/y/PyPRP-HEAD/PyPRP/prp_MatClasses.py   PyPRP(Download)
        # create the material to work on:
        name = str(self.Key.name)
        self.blendermaterial=Blender.Material.New(name)
        mat=self.blendermaterial
        matmode=mat.getMode()

src/p/y/PyPRP-HEAD/PyPRP/prp_DrawClasses.py   PyPRP(Download)
            if mat==None:
                print "   Material %s not found" %str(matref)
                BlenderMat = Blender.Material.New("MatUnknown")
            else:
                BlenderMat=mat.data.ToBlenderMat(obj)

src/b/l/blender-smooth-slides-HEAD/odp_importer.py   blender-smooth-slides(Download)
		b_texture = Blender.Texture.New(name)
		b_texture.setImage(b_image)
		b_material = Blender.Material.New(name)
		b_material.setTexture(0, b_texture , Blender.Texture.TexCo.UV , Blender.Texture.MapTo.COL)
		if (img.mode == 'RGBA') :

src/b/l/blender-smooth-slides-HEAD/odp_blenderize.py   blender-smooth-slides(Download)
		#pprint(Blender.Texture.ExtendModes)
		b_texture.setImageFlags('UseAlpha','MipMap')
		b_material = Blender.Material.New(name)
		b_material.setTexture(0, b_texture , Blender.Texture.TexCo.UV , Blender.Texture.MapTo.COL)
		if (use_alpha and img.mode == 'RGBA') :