Post #1050: > import bpy

📋 Metadata

🏷️ Tags

beginner unsolved

  • Python Scripting

💬 Content

import bpy

if prefs().pie_menus[“panel_group”].enabled == True:
print(“True”)
else:
print(“False”)

It didn’t work it says NameError: name ‘prefs’ is not defined

Am I doing something wrong? haha


🔗 View on Blender Artists