--****************************************************************************************************** -- Created: 05-08-2013 -- Last Updated: 05-08-2013 -- Version: 1.00 -- -- Author : Kostadin Kotev / miau_u@yahoo.com / http://miauumaxscript.blogspot.com/ -- Version: 3ds max 2009 (10) (should work in older versions too!) -- -- Discription: If nothing selected it set SetSelectFilter to all. -- If spline object is selected it set SetSelectFilter to Shape -- If light object is selected it set SetSelectFilter to Light and so on. -- Usage: RUN IT -- --****************************************************************************************************** -- MODIFY THIS AT YOUR OWN RISK macroscript miauuSelectionFilterSwitcher category:"miauu" tooltip:"Selection Filter Switcher" buttonText:"Selection Filter Switcher" ( curO = selection[1] if curO == undefined then (-- nothing selected SetSelectFilter 1 -- All ) else ( try ( case (superclassof curO) of ( GeometryClass: (SetSelectFilter 2) Shape: (SetSelectFilter 3) Light: (SetSelectFilter 4) Camera: (SetSelectFilter 5) Helper: (SetSelectFilter 6) SpacewarpObject: (SetSelectFilter 7) default: (SetSelectFilter 1) ) case (classof curO) of ( Biped_Object: (SetSelectFilter 8) BoneGeometry:(SetSelectFilter 8) ) )catch() ) )