Post #3995: None if C.scene.camera == None else( None if len(C.scene.camera.data.background_

📋 Metadata

🏷️ Tags

pie-menu popup-dialog advanced python-scripting

  • Python Scripting
  • Pie Menu Editor
  • Popup Dialog Editor
  • Property Editor

💬 Content

None if C.scene.camera None else( None if len(C.scene.camera.data.background_images) 0 or not C.scene.camera.data.background_images else (None if C.scene.camera.data.background_images[-1].source != ‘IMAGE’ else L.prop(C.scene.camera.data.background_images[-1], ‘display_depth’, expand=True, text=text, icon=icon)))


🔗 View on Blender Artists