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

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

src/p/y/PyPRP-HEAD/PyPRP/prp_MatClasses.py   PyPRP(Download)
                if mtex.tex.stype == Blender.Texture.STypes.BLN_LIN:
                    # now create a blend, depending on whether it is horizontal or vertical:
                    if(tex.flags & Blender.Texture.Flags.FLIPBLEND > 0):
                        #Vertical blend
                        blendname = "ALPHA_BLEND_FILTER_V_LIN_64x64"
                elif mtex.tex.stype == Blender.Texture.STypes.BLN_QUAD:
                    # now create a blend, depending on whether it is horizontal or vertical:
                    if(tex.flags & Blender.Texture.Flags.FLIPBLEND > 0):
                        #Vertical blend
                        blendname = "ALPHA_BLEND_FILTER_V_QUAD_64x64"
                elif mtex.tex.stype == Blender.Texture.STypes.BLN_EASE:
                    # now create a blend, depending on whether it is horizontal or vertical:
                    if(tex.flags & Blender.Texture.Flags.FLIPBLEND > 0):
                        #Vertical blend
                        blendname = "ALPHA_BLEND_FILTER_V_EASE_64x64"
                    #
                    # Prepare the data for this object....
                    if(tex.flags & Blender.Texture.Flags.FLIPBLEND > 0):
                        blendname = "ALPHA_BLEND_FILTER_V_RADIAL_64x64"
                    else:
                    for y in range(blendheight,0,-1):
                        for x in range(0,blendwidth):
                            if(tex.flags & Blender.Texture.Flags.FLIPBLEND > 0):
                                rely = x - (blendwidth/2)
                                relx = y - (blendheight/2)