Post #3272:
Ma
📋 Metadata
- Author: roaoao
- Date: 2020-05-05 08:21:40
- Type:
answer - Quality Score: 8/10
- Reply to: post_03264
- Replies (1): post_03274
🏷️ Tags
pie-menu customization advanced solved
⚙️ Related PME Features
- Pie Menu Editor
- Property Editor
- Python Scripting
- Custom EnumProperty
💬 Content
MatsuikoHiroka:
hello i want to get rid some of the choices ( length of unit setup )
i want to remove other menus like Adaptive Kilometers Micrometers
Hi @MatsuikoHiroka,
You also can add custom EnumProperty with these slots:
METERS|Meters
CENTIMETERS|Centimeters
MILLIMETERS|Millimeters
Getter:
return self.rna_type.properties[menu].enum_items.find(C.scene.unit_settings.length_unit)
Setter
C.scene.unit_settings.length_unit = self.rna_type.properties[menu].enum_items[value].identifier
Here is json file to import.
❤️ 4 likes