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

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

src/p/y/PyPRP-HEAD/PyPRP/prp_Wizards.py   PyPRP(Download)
                    # Check for existence of textures
                    numTextures = 0
                    for tex in mat.getTextures():
                        if (tex != None):
                            numTextures += 1
                            mat.setTexture(0,newTex,Blender.Texture.TexCo.UV,Blender.Texture.MapTo.COL)
                            numTexCreated += 1
                    for tex in mat.getTextures():
                        if (tex != None):
                            numTextures += 1