I actually commented on the built in methods so that you might research the maxscript behind them. My first step in creating any tool is to see if it already exists. For example. the two scripts below are shorter and avoid extra global variables. ( if selection.count == 1 do ( subLevel = case subobjectlevel of ( 1: 1 2: 2…