Pass the selection down to the editable poly and get the connected edges from there before passing it back to the UV modifier. Something like this: vrt = $.modifiers[#unwrap_uvw].getSelectedGeomVertsByNode $ modPanel.setCurrentObject $.baseObject tmp = polyop.getEdgesUsingVert $ vrt modPanel.setCurrentObject…
This works for me if an Editable Poly or Edit Poly is below the Unwrap modifier. If it's a primitive or a mesh, the problem happens as you describe. ( --GET UVMOD uvMod = modPanel.getCurrentObject() --CHECK IF UVMOD IS SELECTED if classof uvMod == Unwrap_UVW do ( --EXPAND AND CONVERT SELECTION…