Cage edit command that can adapt to any form automatically

Here’s a version that should work with any geometry - Breps, trimmed surfaces etc.

MeshCageMorpher.gha (11.5 KB) (138.8 KB)

Because Space Morphs of NURBS objects don’t always end up with the same number of control points as they started with, it’s not possible to precompute the weights like it is with the point version, so it will be slower. If morphing Breps, you might find it helps to mesh them and use the mesh for previewing changes while setting up the morph, and only replace it with the actual Brep at the end.
If any control points or vertices of the input geometry lie exactly on a face of the reference mesh, it will give strange results. This can generally be avoided by scaling the reference mesh up a little.