I would like to have a text field in a panel to select one (already existing) object. By digging in some other source codes, I found something like that:
# In def draw() # prop = context.scene.MeshProp # # row.label(text = "Mesh Object:") row.prop_search(prop, "source", bpy.data, "objects", text="") # # And later, I'm supposed to be able to do this: print("%s, type %s" % (prop.source, bpy.data.objects[prop.source].type))
Blender doesn’t complain but nothing appears below the label.
– What did I do wrong?
– Is there a widget which will filter only the mesh objects and prevent from typing a non-existing name?