Always nice to see another maxscripter. As you say you're okay with suggestions, here are a few: if selection.count == 1 and isKindOf $ Editable_poly do -- check if the selection is valid ( local obj = selection[1] polyop.createShape obj #selection name:(uniqueName "Lathe") -- don't assign the same name all the time local…
Hey @Swordslayer, thanks a lot for the suggestions! That solves faster to what I already had :) . I was really looking forward to check if the selection was valid before executing the actions but i didn't know how. Is there a special reason why you use local profile instead of $ for selecting the actual object?