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)
                                newTex = Blender.Texture.New(face.image.getName())
                                newTex.setType('Image')
                                newTex.setImage(face.image)
                                #DEBUG
                                print "Created texture",newTex.getName(),"for object",obj.getName()

src/b/l/blender-smooth-slides-HEAD/odp_blenderize.py   blender-smooth-slides(Download)
 
		b_texture = Blender.Texture.New(name)
		b_texture.setImage(b_image)
		b_texture.setExtend('ClipCube')
		#pprint(Blender.Texture.ImageFlags)

src/p/y/PyPRP-HEAD/PyPRP/prp_MatClasses.py   PyPRP(Download)
        # Form the Blender cubic env map MTex
        Tex=Blender.Texture.New(name)
        Tex.setImage(self.ToBlenderImage())
        Tex.type  = Blender.Texture.Types["IMAGE"]
        Tex.setImageFlags('UseAlpha')
        # Form the Blender cubic env map MTex
        Tex=Blender.Texture.New(name)
        Tex.setImage(self.ToBlenderCubicMap())
        Tex.type  = Blender.Texture.Types["ENVMAP"]
        Tex.stype = Blender.Texture.STypes["ENV_LOAD"]

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)