PickMaterial

2 votes
Version: 
1
Date Updated: 
09/30/2025

This script is intended to pick material in viewport and send it to material editors (both Slate and Classic),it will automatically open material editor if it isn't opened yet.
If you pick a Multi/Sub-Object material it will load the material applied on the picked polygon rather than the all Multi/Sub-Object material.
As long as the script button is highlighted in blue , you can continue picking materials
To exit the script you can either right-click or click the script button
if you use Slate Material Editor(SME) it will automatically layout each time a new material is loaded, if you prefer keeping the current state of your SME view you can remove line 57
"SelView.LayoutAll()", but materials will all be imported at the same position overlapping each other.
If the picked material Multi/Sub-Object material is already loaded in SME it will focus on the picked ID.
If you use Classic Material Editor the loaded material will appear in the selected slot, you can still select slot while the script is on, meaning you can load multiple material one by one in different slots.
The main goal is to avoid entering object subobject polygon to find which material ID is on the object polygon and having direct access to the material applied on that polygon