code/vexptoolbox/vrutil.py
def fromFiles(cls, files):
        """ Create a new ObjectCollection by loading assets from
        a folder or list of file names. File base names will be used
        as keys in the collection.

        Args:
            files: path spec, e.g. 'objects/*.glb', or list of file names
        """
        obj = {}
        if type(files) == str:
            for of in glob.glob(files):
                key = os.path.splitext(os.path.split(of)[1])[0]
                obj[key] = vizfx.addChild(of)
                obj[key].visible(False)
        else:
            for of in files:
                try:
                    key = os.path.splitext(os.path.split(of)[1])[0]
                    obj[key] = vizfx.addChild(of)
                    obj[key].visible(False)
                except:
                    print('Error: could not load {:s}'.format(of))

        return ObjectCollection(_src=obj)
 Create a new ObjectCollection by loading assets from
        a folder or list of file names. File base names will be used
        as keys in the collection.

        Args:
            files: path spec, e.g. 'objects/*.glb', or list of file names
        
Create a new ObjectCollection by loading assets from
a folder or list of file names. File base names will be used
as keys in the collection.
Create a new ObjectCollection by loading assets from a folder or list of file names . File base names will be used as keys in the collection .
def fromFiles(cls, files):
        obj = {}
        if type(files) == str:
            for of in glob.glob(files):
                key = os.path.splitext(os.path.split(of)[1])[0]
                obj[key] = vizfx.addChild(of)
                obj[key].visible(False)
        else:
            for of in files:
                try:
                    key = os.path.splitext(os.path.split(of)[1])[0]
                    obj[key] = vizfx.addChild(of)
                    obj[key].visible(False)
                except:
                    print('Error: could not load {:s}'.format(of))
        return ObjectCollection(_src=obj)
def fromFiles ( cls , files ) : obj = { } if type ( files ) == str : for of in glob . glob ( files ) : key = os . path . splitext ( os . path . split ( of ) [ 1 ] ) [ 0 ] obj [ key ] = vizfx . addChild ( of ) obj [ key ] . visible ( False ) else : for of in files : try : key = os . path . splitext ( os . path . split ( of ) [ 1 ] ) [ 0 ] obj [ key ] = vizfx . addChild ( of ) obj [ key ] . visible ( False ) except : print ( 'Error: could not load {:s}' . format ( of ) ) return ObjectCollection ( _src = obj )
Create a new ObjectCollection by loading assets from
a folder or list of file names.
Create a new ObjectCollection by loading assets from a folder or list of file names .
""" Create a new ObjectCollection by loading assets from
        a folder or list of file names. File base names will be used
        as keys in the collection.

        Args:
            files: path spec, e.g. 'objects/*.glb', or list of file names
        """
cls
files
path spec, e.g. 'objects.glb', or list of file names
path spec e . g . ' objects . glb ' or list of file names