Post #4922: You mentioned wanting to create a menu for transparency. As you saw in the video

📋 Metadata

🏷️ Tags

pie-menu property-editor customization intermediate

  • Property Editor
  • Command tab
  • Getter/Setter configuration
  • Subtype styling

💬 Content

You mentioned wanting to create a menu for transparency. As you saw in the video, face_retopo has four float values. Therefore, you can focus on the fourth value, face_retopology[3]. If you want to have presets for this, instead of using the Property tab, you can specify values like this in the Command tab:

C.preferences.themes['Default'].view_3d.face_retopology[3] = 0.5

However, let’s go a step further and create a slider just for transparency. Try creating a property as shown in the image. For the Getter, write something like return some value-returning property. For the Setter, write property-you-want-to-write = value. Additionally, setting the Subtype to ‘Factor’ will make the UI appear like a slider.

imageimage763×533 60.1 KB

image

You’ll probably come to like PME Property. Feel free to ask any questions.


❤️ 3 likes


🔗 View on Blender Artists