0
$\begingroup$

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 selected path.

$\endgroup$
1
-1
$\begingroup$

After the lines:

col.prop(placeholder, "inc_dec_int", text="Increment/Decrease")
        col.prop(placeholder, "dropdown_box", text="Dropdown")
        col.prop(placeholder, "file_path", text="Filepath")

Add:

print(placeholder["file_path"])

To print the selected file-path of the file-browser.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.