Post #3570: Where can I find this panel?
📋 Metadata
- Author: roaoao
- Date: 2020-09-07 22:08:36
- Type:
answer - Quality Score: 7/10
- Reply to: post_03567
- Replies (1): post_03572
🏷️ Tags
popup-dialog custom-normals intermediate solved
⚙️ Related PME Features
- Popup Dialog Editor
- Custom Tab
- Python Scripting
💬 Content
Where can I find this panel?
anphung:
The original button is checking if the object has Custom Normals or not & showing Add or Clear based on that. How would you go about recreating such a context sensitive button?
You need Custom tab for this. The code should look like this:
L.operator("clear.operator" if has_custom_normals else "add.operator")
Check the source code of that button to find operator IDs and condition.
❤️ 3 likes