Linked Questions

-3 votes
2 answers
8k views

UI, how to add a file browser to a panel [duplicate]

The link below by poor is very relevant. This is also related: How can i open a file select dialog via python to add an image sequence into VSE? The best source I have found in 4 days of search is: ...
The Beachdancer's user avatar
0 votes
1 answer
4k views

Python - How to Add a Text Field to the UI? [duplicate]

I'm trying to create a text field in the UI that will allow users to enter a directory path, then press a button to export an fbx file to that path. The Button creation into the UI works great. ...
Teriander's user avatar
1 vote
1 answer
244 views

Create a folder dialog box for an addon (2.91) [duplicate]

I'm trying to add a folder dialog box in the add-on I'm working on. I managed to add a button that opens a folder dialog and setup the path, but I'd like to be able to see that path rather than just ...
CédricF's user avatar
0 votes
1 answer
225 views

Python choose filepath UI [duplicate]

I already know how to add a filepath selection to my N-Panel UI thanks to this: Python Panel Dropdownlist and Integer Button But how do I access the selected path? I would love to print out the ...
BlackCube's user avatar
0 votes
0 answers
111 views

Material Sync from external .blend file UI [duplicate]

UPDATE: I reorganized the code in a way that now it runs and does what is meant to do when opening the file explorer. But still I fail on having the directory path on the UI. I have this script made ...
Juan Carlos's user avatar
0 votes
0 answers
108 views

Set maximum width for an operator's button in UI? [duplicate]

How can I set a width maximum or fixed value for a button? I have an UI looking like this: The text field would be full path of a file and the 'Set' button is openning a dialog box. How can I go ...
kaveh Alla's user avatar
0 votes
0 answers
37 views

How to change the behavior of the file browser [duplicate]

I was able to call the file browser from Python by referring to a previous question. I used the following code. ...
gncc's user avatar
  • 153
56 votes
2 answers
60k views

How to create a custom UI?

I was watching this video on making a custom UI tab using Python, and in the line from bpy.types import Menu, Panel, UIList, I see the names of objects that look ...
DragonautX's user avatar
  • 1,306
7 votes
2 answers
8k views

Use filemanager to select directory instead of file?

I want my export operator to open the normal file selector but instead of asking for a specific file I want it to ask for a directory. The reason for this is that both my model and the textures should ...
WorldSEnder's user avatar
  • 1,626
5 votes
1 answer
4k views

How to use the File Browser's (with ImportHelper) execute function?

I now have the file browser, and I've found out how to load the texture into the node but not from the file browser. I have to type the file path in manually, and I had to put it in a different class ...
mr-matt's user avatar
  • 1,190
2 votes
1 answer
4k views

How to add images from selected folder via Python

In my Panel class I use: col.prop(context.scene, 'path') I also have: ...
Mc Gavish's user avatar
  • 159
2 votes
1 answer
2k views

How to get filename and directory of selected files in filebrowser (Python)? [duplicate]

I'm trying to get the filename and directory of the currently selected files in the file browser. When I hover over the directory with the cursor I see "FileSelectParams.directory", and this ...
0rbitaldonkey's user avatar
2 votes
1 answer
1k views

How can I get the full path of the selected file from the file explorer?

I have tried in several ways and the only one that worked for me was through a modal that extends from ImportHelper, however I would like to do everything from the ...
Richard Collao's user avatar
2 votes
2 answers
673 views

Difference between variable and property scope in a script

My __init__.py script creates a panel that lets a user select the figure (typically a humanoid figure imported from Poser) she wants to give shaders to, defines the ...
RobinsSea's user avatar
  • 253
1 vote
0 answers
949 views

Blender Python - How to create path and folder structure from within Blender

I have some experience in programming, so I know the basics of Python in Blender. I know how to dig through the Blender Python Refernce but it is very much to look around. I know I need to import ...
Master Heavy's user avatar

15 30 50 per page