Post #3643: Hi Roaoao. I have a small question about the pool methods :).
📋 Metadata
- Author: Woolfy13
- Date: 2020-10-29 15:10:06
- Type:
question - Quality Score: 7/10
- Replies (1): post_03647
🏷️ Tags
pie-menu scripting intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
- Pool Methods
💬 Content
Hi Roaoao. I have a small question about the pool methods :).
I asked for a while about pool methods in Vertex,Edge,Face which are amazing working in PME!
Like this:
“import bmesh; bm = bmesh.from_edit_mesh(C.object.data); num_sel_edges = len([e for e in bm.edges if e.select]); return C.scene.tool_settings.mesh_select_mode[1] and num_sel_edges == 0”
Is there also a pool method code for Object mode? Like
- if 0 objects are separated
- If 1 object is selected
- if >1 object is selected
Thank you in advance!