Request - Zoom Extents omitting locked objects

Could we please have one more Zoom sub-command?

Zoom Extents not Locked ? Zoom _N maybe?

I quite often have geometry in my models that is used as helping objects. Like centre lines used for mirroring. Or boundaries not be crossed. Or recently fifty clipping planes floating around.

Now, when you do Zoom Extents, locked geometry is included when it is visible. So Zoom Extents with “helpers” does not work so well. Sure you can use Zoom Selection, but it requires Select All and then zooming.

It would be handy to have a Zoom Extents that omits the locked objects.

Thanks
/Erik

I’ve used this script for years. With minor changes you can make a button instead.

import rhinoscriptsyntax as rs

def main():
SelectedSet = rs.SelectedObjects()
arrObjects = rs.NormalObjects()
rs.EnableRedraw(False)
if arrObjects:
rs.SelectObjects(arrObjects)
rs.ZoomSelected(all=False)
rs.UnselectObjects(arrObjects)
print (“Zoomed to unlocked.”)
#re-select objects
if SelectedSet:
rs.SelectObjects(SelectedSet)
rs.EnableRedraw(True)

if( name == “main” ):
#call function defined above
main()

Thanks.

I just think this could be included by default in the software!

So still a wish.

/Erik