;LMB
_Zoom _All _Selected
_Isolate Pause
;_RemoveFromGroup _SelAll Enter ;"what I want"
;! _RemoveFromGroup _SelAll Enter ;"! error"
;_SelAll ;"head scratcher"
;! _SelAll ;"! error"
;RMB
_SelAll
_Group Pause Enter
_Unisolate
I’d like the left mouse button to zoom in on a selection, _Isolate it, and remove any groupings (_RemoveFromGroup _SelAll Enter). Then the right would package it into a group and _Unisolate.
here is a python that you can use as well- I think it does what you are shooting for:
import rhinoscriptsyntax as rs
def IsolateUngroup():
ids = rs.GetObjects(preselect=True)
if not ids: return
rs.Command('_Zoom _All _Selected', False)
rs.Command('_Isolate',False)
for id in ids:
rs.RemoveObjectFromAllGroups(id)
if __name__ == '__main__': IsolateUngroup()