Post #1553: This doesn’t necessarily go along with your Addon exactly, but in Python/in Blen

📋 Metadata

🏷️ Tags

intermediate unsolved

  • Property Editor
  • Python Scripting

💬 Content

This doesn’t necessarily go along with your Addon exactly, but in Python/in Blender, can I create a layout.prop_search, where it initially loads up a specific Object, but then when I click the drop down/select another object, it replaces it, and doesn’t RENAME the original?

def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
		obj = item.object

        split.prop_search(obj,"name",bpy.context.scene,"objects","","",False,'OBJECT_DATA')

image


🔗 View on Blender Artists