I want to make all of the files in the windows/font/ folder open all at once in blender instead of needing to add each one in the folder individually.
I need all of the fonts to be pre loaded or open so they display in this menu here:
from bpy import ops from glob import glob from os import chdir, path directory = "C:\\Windows\\Fonts" chdir(directory) for file in glob("*.ttf") + glob("*.otf"): ops.font.open(filepath = path.join(directory, file), relative_path=False)
directory variable with the folder path, which contains your font files. Escape \ with \.
Paste the script in the text editor and press Run Script.