I want to make a script that can import multiple pictures at once in the node editor. But the current file view can only support the import of a single file. How can you make it support multiple files?  import bpy import os  from bpy.props import StringProperty, BoolProperty from bpy_extras.io_utils import ImportHelper from bpy.types import Operator   class OT_TestOpenFilebrowser(Operator, ImportHelper):     bl_idname = 'test.open_filebrower'     bl_label = 'Open the file brower(yay)'      filter_glob: StringProperty(         default='*.jpg;*.jpeg;*.png;*.tif;*.bmp',         options={'HIDDEN'}     )      some_boolean: BoolProperty(         name = 'Do a thing',         description= 'Do a thing with',         default= True,     )      def execute(self, context):         filename, extension = os.path.split(self.filepath)          print('selected file', self.filepath)         print('file name', filename)                  bpy.ops.node.add_file(filepath = self.filepath)          return {'FINISHED'}  def register():     bpy.utils.register_class(OT_TestOpenFilebrowser) def unregister():     bpy.utils.unregister_class(OT_TestOpenFilebrowser)  if __name__ == '__main__':     register()
122022
Is there a way in bpy to get a list of all selected files from the file browser?  I have this code, but it is only for the active file selection:  selectedFile = '' for screenArea in bpy.context.window.screen.areas:    if screenArea.type == 'FILE_BROWSER':         params = screenArea.spaces[0].params         selectedFile = os.path.join(params.directory, params.filename)         break
25532
I have to work with .dng files and it looks like you can do it in Blender, somehow.   As stated in , it seems that you can import them but I don't know how; how do I do this?
74213
Fairly new to python and blender, so apologies if this is super basic. I've searched around and haven't found an answer.  I'd like to render some procedurally generated objects with a background image. In case it makes a difference, I'm using:    I don't need any interaction between the generated object and the background image so I've left a skeleton script I'm using to render below  import os DIR ="/home/path/to/folder" bg_file = os.path.join(DIR, "myimage.jpg") bg_img = bpy.data.images.load(bg_file) bpy.data.scenes['Scene'].render.filepath = os.path.join(DIR, "image") bpy.context.scene.camera = bpy.data.objects['Camera'] bpy.ops.render.render(write_still=True)   I managed to find some scripts that seem to be trying to do what I want online, but none that I could get to work. e.g.  import bpy filepath = "/home/path/to/folder" img = bpy.data.images.load(filepath)  for area in bpy.context.screen.areas:     if area.type == 'VIEW_3D':         space_data = area.spaces.active         bg = space_data.background_images.new()         bg.image = img         break  cam = bpy.data.cameras.new("Camera") cam_ob = bpy.data.objects.new("Camera", cam) bpy.context.scene.camera = cam_ob bpy.context.scene.objects.link(cam_ob) bpy.context.scene.objects.active = bpy.context.scene.objects["Camera"]   Any thoughts/tips would be greatly appreciated!
62799
I have 8 python scripts and I need to lunch them at once. For one script, I used   blender --background --python script1.py   for the eight scripts, I tried this command but it does not work.  blender --background --python *.py
90585
The following:  bpy.data.objects['Cube'].select = True  bpy.context.scene.objects.active = bpy.data.objects['Sphere.017']   don't work in Blender 2.8, they did in 2.79 though. How should I select (multiple) objects with Python in Blender 2.8?
111452
I'm having an image field with option set as UNLIMITED to accept infinite images, basically deleting images in single manner is possible, but how it can be possible to delete multiple images at once from a particular node?  I've tried it by applying some logics using Views Bulk Operations and also using Editable Views, but nothing worked for me.  Any suggestion on this?
46666
Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory.  I want to input all files from within my main LaTeX document. Actually I can create a list of those files using C# in advance.  To enrich my view about LaTeX or TeX, could you tell me whether or not this job can be done only by using pure TeX or LaTeX?
13452
Is it possible to batch import Wavefront .obj to blender? I'm working on 2.69. If I select multiple .obj files, only one gets imported. Also if I hit A on file selection window to select all files (.obj and .mtl) I get an error, nothing gets imported. I have to import several hundreds of .obj into the blender file, is this possible?
100078
For a large project, I'd like to write each chapter on it's own. After that, I'd wish (of course) to incorporate all the chapters in a base document (the large project). I've heard ob \include and \input, but they don't seem to do what I'm searching for:   Is it possible to include/input only the part between \begin{document} end \end{document} of the chapter files, so that it's possible to compile the chapter files separately (to be able to check and work on the chapter file) before compiling it in the base document? I know this would be possible by simply deleting the preample of the chapter files, but with a dozen of chapter files, I prefer an automated way (if possible). Is it possible to make references to \label and \ref between different chapters, using different chapter files?
91836
I want to know how to create a menu with previews for an add-on. Until now I know that this is related with the bpy.utils.preview. I'm making an add-on that appends objects from a .blend file, I know how to append objects but what I want to do is to create a menu with previews of the objects /(similar to the matcaps menu - see below), select them and then press an &quot;import button&quot; to append the object. Here's some documentation about the module:    Also, as this is an add-on I don't know if I should have a def register() and a def unregister() inside this .py file as well as in the __init__.py file.
27041
I can display and select a single file in windows explorer like this: explorer.exe /select, &quot;c:\path\to\file.txt&quot;  However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Note: I looked at these pages for docs, neither helped.
17041
I have a button in my menu named "New File" as shown:    and I want when I click on the "New File" button to imitate what the Blender File->New does, where a check message box appear first confirming that you want to reload the Start-up File and if pressed then the startup file is loaded as shown below.    This is my script, when I press on new it opens the startup file without checking:  class NewFile(bpy.types.Operator):     """New File"""     bl_idname = "wm.newfile"       bl_label = "New File"     bl_options = {'REGISTER', 'UNDO'}      def execute(self, context):         bpy.ops.wm.read_homefile()         return {"FINISHED"}
108414
I am loosing my mind here.   Every example addon in blender uses bpy.types.INFO_MT_file_export yet not a single doc explains where the hell the name INFO_MT_file_export comes from.  The doc for bpy.types doesn’t have anything about it. Which leads me to believe we are accessing some object.  I can draw the conclusion that it’s a bl_idname for the info menu and the export submenu, but I don’t understand why we can access it using the dot operator inside of bpy.types, or why we can call the append and remove function if it’s a type of Menu.  Moreover, is there a list or something of all of these predefined possible menu ids?
90425
I'm trying to do a very simple thing (seems not that simple at all) in my custom form, to add multiple files using the managed_file form api. Like in the admin, select a file, upload, then a new input file appears.  But I can't achieve that... do I need a callback ???      'gallery' =&gt; array(         '#type' =&gt; 'managed_file',           '#name' =&gt; 'gallery[]',         '#title' =&gt; t('Gallery'),         '#upload_location' =&gt; 'public://',         '#attributes' =&gt; array(             'multiple' =&gt; 'multiple',         ),     ),   Thanks
105687
I have 20 text files with various extensions in a directory.  I want to replace "nnn" with "ooo" in all files.  I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.  What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.  Does anyone know of a tool like this?
80068
I want to be able to compare to large spreadsheets side by side...  Since you can not natively expand to all monitors I would like to have the two documents open in two instances.  These files are links on Sharepoint.
35022
I want to make an application, say , the default player for all the file types it supports, without going through all of them individually.  I might not even know what all the supported formats are (as VLC can read 100s of formats) and still want to set it as the default player for all of them.  I was able to do this using the terminal, with the procedure posted below.  Is there an easier way to do it that doesn't require the user to be a developer?