Post #1287: Wa

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2018-03-30 00:38:43
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01286

🏷️ Tags

pie-menu popup-dialog python-scripting intermediate solved

  • Custom tab
  • Python Scripting
  • Property Editor
  • Popup Dialog Editor

πŸ’¬ Content

Way2Close:

Is it possible to draw a property using a condition I tried this but it doesn’t work lol

C.object.data.show_extra_edge_length if C.active_object.mode == "EDIT" else None

In this case you need to use Custom tab:

L.prop(C.object.data, "show_extra_edge_length") if C.active_object.mode == "EDIT" else None

πŸ”— View on Blender Artists