Did I find the right examples for you? yes no

All Samples(16)  |  Call(12)  |  Derive(0)  |  Import(4)

src/b/l/blenderpython-HEAD/scripts/addons_extern/render_3delight/export.py   blenderpython(Download)
from .util import user_path
from .util import get_path_list_converted
from .util import path_list_convert
 
addon_version = bl_info['version']
def export_searchpaths(file, paths):
    file.write('Option "searchpath" "string shader" "%s"\n' % ':'.join(path_list_convert(paths['shader'], to_unix=True)))
    file.write('Option "searchpath" "string texture" "%s"\n' % ':'.join(path_list_convert(paths['texture'], to_unix=True)))
    file.write('Option "searchpath" "string procedural" "%s"\n' % ':'.join(path_list_convert(paths['procedural'], to_unix=True)))
    file.write('Option "searchpath" "string archive" "%s"\n' % ':'.join(path_list_convert(paths['archive'], to_unix=True)))

src/3/d/3delightblender-HEAD/export.py   3delightblender(Download)
from .util import user_path
from .util import get_path_list_converted
from .util import path_list_convert
 
addon_version = bl_info['version']
def export_searchpaths(file, paths):
    file.write('Option "searchpath" "string shader" "%s"\n' % ':'.join(path_list_convert(paths['shader'], to_unix=True)))
    file.write('Option "searchpath" "string texture" "%s"\n' % ':'.join(path_list_convert(paths['texture'], to_unix=True)))
    file.write('Option "searchpath" "string procedural" "%s"\n' % ':'.join(path_list_convert(paths['procedural'], to_unix=True)))
    file.write('Option "searchpath" "string archive" "%s"\n' % ':'.join(path_list_convert(paths['archive'], to_unix=True)))

src/b/l/blenderpython-HEAD/scripts/addons_extern/render_3delight/shader_parameters.py   blenderpython(Download)
from .util import init_env
from .util import get_path_list
from .util import path_list_convert
from .util import path_win_to_unixy
from .util import user_path
def shader_filename(shader_path_list, shadername):
 
    for p in path_list_convert(shader_path_list):
        filename = os.path.join(p, "%s.%s" % (shadername, shader_ext))
 
def shader_recompile_all(scene):
    shader_path_list = get_path_list(scene.renderman, 'shader')
    for p in path_list_convert(shader_path_list):
        for filename in os.listdir(p):
            if os.path.splitext(filename)[1] != '.sdl':

src/3/d/3delightblender-HEAD/shader_parameters.py   3delightblender(Download)
from .util import init_env
from .util import get_path_list
from .util import path_list_convert
from .util import path_win_to_unixy
from .util import user_path
def shader_filename(shader_path_list, shadername):
 
    for p in path_list_convert(shader_path_list):
        filename = os.path.join(p, "%s.%s" % (shadername, shader_ext))
 
def shader_recompile_all(scene):
    shader_path_list = get_path_list(scene.renderman, 'shader')
    for p in path_list_convert(shader_path_list):
        for filename in os.listdir(p):
            if os.path.splitext(filename)[1] != '.sdl':