Post #4778: Sorry for the lack of explanation! Also, I thought you could use it by typing it

📋 Metadata

🏷️ Tags

pie-menu properties intermediate solved

  • Property Editor
  • Pie Menu Editor
  • Python Scripting

💬 Content

Sorry for the lack of explanation! Also, I thought you could use it by typing it in the Property tab, but I was wrong, you need to use PME Property.
Create a Property and configure it as shown in the following image.

# Getter
return bpy.context.active_object.color[3]
# Setter
bpy.context.active_object.color[3] = value

imageimage733×576 57.3 KB

Then in any menu item, call it using the Property name.
image
Please call me back if you have any questions.


❤️ 4 likes


🔗 View on Blender Artists