Post #4922: You mentioned wanting to create a menu for transparency. As you saw in the video
📋 Metadata
- Author: Pluglug
- Date: 2023-12-05 17:43:19
- Type:
answer - Quality Score: 8/10
- Reply to: post_04921
- Replies (1): post_04923
🏷️ Tags
pie-menu property-editor customization intermediate
⚙️ Related PME Features
- 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.

You’ll probably come to like PME Property. Feel free to ask any questions.
❤️ 3 likes
image763×533 60.1 KB