Using Checkboxes - simphysoftwares/SimPHY-docs GitHub Wiki
Show/Hide Optical and Geometrical Objects
Create Optical surface like mirror, lens or even a ray. Enter checkbox's name in the visible section from the Property Panel. You can control visibility of Geometrical shapes in a similar manner.
Watch the video below to understand better.
Access Body Toggle Controller
You can write any Boolean function (if output of that function = 0, then false else 1, easiest possible is a checkbox if checked then true else false) for controlling the toggle properties of the body.