anatools.lib.file_handlers module¶
- blender_load(self, **kwargs)¶
Load a blender file. Doesn’t require a collection name.
- file_to_objgen(generators, object_class)¶
Process a mixed list of generators, FileObjects, and DirectoryObjects For any FileObject in the list, wrap it in an ObjectGenerator. The object type returned by the generator will be ‘object_class’. The loader method will be replaced with one appropriate to the file type specified in the FileObject (currently only Blender is supported). For any DirectoryObject in the list, loop through all files in the directory (excluding subdirectories and files ending in .anameta) and make them object generators as above.
- filename_to_generator(filename, object_class)¶