Outcome
Use your own PNG as a PME item icon without storing it inside the add-on installation.
The folder button in PME’s Custom icon selector opens the active icons resource folder. Copy the file into that folder, then reload the icon collection.
Steps
-
Open PME Preferences → Settings → Resources and confirm the active resource root.
-
Open an item’s icon selector and switch to Custom.
-
Press the folder button to open the exact
iconsfolder PME is reading. -
Copy your icon there as a lowercase
.pngfile, for example:sculpt_mask.png -
Return to PME and press the reload button beside the Custom icon selector.
-
Choose
sculpt_maskfrom the refreshed icon list. -
Save preferences, restart Blender once, and confirm that the icon still appears.
Use an icon from Custom layout code
PME indexes a custom icon by its filename without the extension:
L.label(text="Mask", icon_value=custom_icon("sculpt_mask"))The same name can be used anywhere a Blender UILayout call accepts icon_value.
File rules in PME 2.1
- The loader reads
.pngfiles from the active user resourceiconsdirectory. - Use a lowercase
.pngextension; the filename filter is exact. - Use a visible filename without a leading
_; underscore-prefixed names are hidden from the selector. - The
_intr_prefix is reserved for PME’s internal icons. - Replacing a file on disk requires a reload before PME swaps to the new preview collection.
Pitfalls
- An operating-system preview only displays an image; copy it into the active
iconsfolder to add it to PME. - Keep user icons in the resource folder because an extension update can replace files inside the installed extension directory.
- If no icon appears, verify the active resource root first; an old and a new Blender profile can point to different folders.
- A failed image can leave the previous icon generation active. Fix the PNG, then reload again rather than repeatedly changing the menu item.
Related answers
- Know which PME data lives in which location
- Recover menu definitions without overwriting resources
- Move a setup to PME 2.1 safely