(root_3d)
return path_HDA
Build HOUDINI_OTLSCAN_PATH env variable value:
    Get all subfolders of HDA location dirs (hda and lib/materials) and combine to one string
    Used by Houdini to search for HDA (Houdini Digital Assets)
Build HOUDINI_OTLSCAN_PATH env variable value:
    Get all subfolders of HDA location dirs (hda and lib/materials) and combine to one string
    Used by Houdini to search for HDA (Houdini Digital Assets)
Build HOUDINI_OTLSCAN_PATH env variable value : Get all subfolders of HDA location dirs ( hda and lib / materials ) and combine to one string Used by Houdini to search for HDA ( Houdini Digital Assets )
def get_hda_path(root_3d):
    """
    Build HOUDINI_OTLSCAN_PATH env variable value:
    Get all subfolders of HDA location dirs (hda and lib/materials) and combine to one string
    Used by Houdini to search for HDA (Houdini Digital Assets)
    """

    filter_folders = ['backup']

    def combine_paths(list_paths):
        """
        Combine paths string from list of paths
        :param listPaths: list of sub folders in processed folder
        """

        path_HDA = ''

        for folder in list_paths:
            path = folder[0].replace('\\', '/')
            # Filter unnecessary folders
            if not path.split('/')[-1] in filter_folders:
                path_HDA += '{};'.format(folder[0].replace('\\', '/'))

        return path_HDA

    # Get list of sub folders
    list_paths_HDA = os.walk('{0}/hda'.format(root_3d))  # HDA
    # list_paths_MTL = os.walk('{0}/lib/MATERIALS'.format(root3D))  # Material library
    # list_paths_LIT = os.walk('{0}/lib/LIGHTS'.format(root3D))  # Light library

    # Global HDA library path (WIP! TBD!)
    list_paths_LIB = os.walk('')  # Global HDA (between projects)

    # Combine paths to a string
    path_HDA = combine_paths(list_paths_HDA)
    # combine_paths(list_paths_MTL)
    # combine_paths(list_paths_LIT)
    # combine_paths(list_paths_LIB)

    # Add Houdini standard OTLs
    path_HDA = path_HDA + '&'

    return path_HDA
def get_hda_path ( root_3d ) : filter_folders = [ 'backup' ] def combine_paths ( list_paths ) : """
        Combine paths string from list of paths
        :param listPaths: list of sub folders in processed folder
        """ path_HDA = '' for folder in list_paths : path = folder [ 0 ] . replace ( '\\' , '/' ) # Filter unnecessary folders if not path . split ( '/' ) [ - 1 ] in filter_folders : path_HDA += '{};' . format ( folder [ 0 ] . replace ( '\\' , '/' ) ) return path_HDA # Get list of sub folders list_paths_HDA = os . walk ( '{0}/hda' . format ( root_3d ) ) # HDA # list_paths_MTL = os.walk('{0}/lib/MATERIALS'.format(root3D))  # Material library # list_paths_LIT = os.walk('{0}/lib/LIGHTS'.format(root3D))  # Light library # Global HDA library path (WIP! TBD!) list_paths_LIB = os . walk ( '' ) # Global HDA (between projects) # Combine paths to a string path_HDA = combine_paths ( list_paths_HDA ) # combine_paths(list_paths_MTL) # combine_paths(list_paths_LIT) # combine_paths(list_paths_LIB) # Add Houdini standard OTLs path_HDA = path_HDA + '&' return path_HDA