How to add URI to select the path of the file in python API?


I want to select the file and get the path of this file. So I add the URI in my add-on, as follow picture.

But this VC_URI type can’t select the file. This kind of VC type only can select the document. The following is my python code.

After that, I found that there are only ten kinds of type in python API. I’m curious about these are all of the types? or it still have the other type that I have not find. Can someone teach me how to select the file and my curious? Thank you!!

Hello Jerry,

What I understood is that you want to select a file through Python API and for that you have to write uri (file path).

Select variable first and assign file path as value to the variable.





Here, rollerconveyor component will load in 3D world.