A way of hiding or showing Max objects is to assign an object a “scripting name” in the Inspector, then give the thispatcher object a ‘script’ message telling it to hide or show that object.
Put this patch in Presentation Mode and try it out.