Hi everyone,
I’m a maxscript user that tries to conform blender-python world,
I need a custom UI that have a listbox containing with list of a files in pre-defined path.
this files ll be python scripts and i want to double click on listbox and run them.
i hope its a easy task but i couldnt find how to do it, is there anyone can do this?
this might be a kickstart for me:)
i upload an image that show how i imagine it,
Bests,
Eren
Thank u so much for fast reply Dorian!
i saw this topic before but i need to simplify it to understand how the things are lining up on UI,
also i couldnt find how to catch the double click event.
Hi Again,
i couldn’t add a UIList but could add a dropdown list with self.layout.prop() command.
i got the commands from Unit system dropdown, but cant change the items of it.
How can i assign an array here?
here is my current codes:
import bpy
class View3DPanel:
bl_space_type = ‘VIEW_3D’
bl_region_type = ‘UI’
bl_category = “Custom”
class FLoader(View3DPanel, bpy.types.Panel):
bl_idname = “VIEW3D_PT_test_1”
bl_label = “Listbox”
def draw(self, context):
unit = context.scene.unit_settings
self.layout.prop(unit, "system")
bpy.utils.register_class(FLoader)