-- 	R4 version hacked together by grant from randy's code
-- 	version 1.0
-- 	ghra@optushome.com.au

----------------------------------------------------------------
--	Stack Manager Right-Click Menu Definition v1.0
--	by Randy Kreitzman (randy.kreitzman@autodesk.com)
--	Kinetix QE
--	03/29/99 [Work in Progress]
----------------------------------------------------------------

--	Description:
--	PinStack simply reselects the last modifier in the stack that was selected when reselecting
-- 	an object. The new stack is much easier to navigate, but I often do not want to work with a modifier
--	at the top of the stack, and also want to work with the same modifiers repeatedly.

-- 	Procedure:
--	1. Unzip the zip file to your base max directory.
-- 	2. relaunch max4.
--	3. Customize UI, and add the 'TogglePinState' in the 'Grants' category to a toolbar/quad/etc.
-- 	4. Run the 'TogglePinState': a message will appear indicating new state.
--	5. Create an object and add a modifier.
--	6. Select the base object level in the stack and deselect the object(or exit the Modify panel).
--	7. Reselect the object(or reenter the Modify panel).
--
--	Note that the base object level reappears in the modifier stack.

--	Note that the states of Pin Stack is sticky between sessions (loaded from an INI file).

----------------------------------------------------------------