Post #2861: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

πŸ“‹ Metadata

🏷️ Tags

scripting intermediate solved

  • Python Scripting
  • Macro Editor

πŸ’¬ Content

anphung:

Is it possible to detect if you’re in Local View? Like, run this command only when in Local View

Yes, check C.space_data.local_view value. Eg:

print("Local Mode: OFF") if C.space_data.local_view is None else print("Local Mode: ON")

❀️ 2 likes


πŸ”— View on Blender Artists