Working in edit mode - Manual selection of vertices/edges/faces in 3D view
Created by: portnov
General idea. When creating useful meshes, you often want to select "these" faces (or vertices, or edges) and do something with them: extrude or delete or whatever. Currently you can do it with masks; but the main problem is what numbers to write. Index viewer is of use, but the problem is: when you looked at indices and wrote them to List Input node to be a mask; then next time someone opens blend file, he will have no idea what these numbers in List Input mean, why these numbers were entered, not other.
Looking for competitors: in Grasshopper, you can select parts of created mesh interactively in 3D view at any time. It would be cool to have similar behaviour in Sverchok, but I have no idea if it is possible in Blender at all.
So, currently suggested solution is:
- Add "Selected verts mask", "Selected edges mask", "selected faces mask" outputs to BMesh Viewer node.
- Add "Get selection" button to it. Node should remember selected verts/edges/faces when you press this button.
- (not implemented yet): BMesh Viewer should use remembered selection when generating new meshes. So it will be easy to slightly modify previously remembered selection.
So the workflow will be like:
- Generate something with BMesh Viewer
- Select that mesh and go to Edit mode
- Select some verts/edges/faces
- In BMesh Viewer node, press "Get Selection". It will remember indicies of verts/edges/faces you selected, and pass them to output.
- Now you can switch UPD in this BMesh Viewer off, and delete generated mesh, if you do not need it. Node will still remember what verts/edges/faces you selected.
- Use Mask outputs of BMesh Viewer somewhere.
- It is possible to use several BMesh Viewers in one node tree. For example: extrude these, then extrude one of extruded faces...
If at some point you decided that you need to change selection:
- enable UPD for corresponding BMesh Viewer (it will generate new mesh)
- select that new mesh and go to edit mode
- (not implemented yet): selection will be the same as you selected first time
- Adjust selection
- Press "Get Selection" button in BMesh Viewer again.
- Now you can switch UPD off and remove mesh.
This workflow is not super-nice, but i think it is better than nothing.
Current implementation is in: https://github.com/portnov/sverchok/tree/viewer_bmesh_select