Post #2514: return C.object and C.object.type in (‘MESH’,) and C.region_data.is_perspective

📋 Metadata

🏷️ Tags

python-scripting beginner

  • Python Scripting

💬 Content

return C.object and C.object.type in (‘MESH’,) and C.region_data.is_perspective

Note that we need to add a comma to create a tuple with one element - ('MESH', )


🔗 View on Blender Artists