How to prevent hidden shapes from being exported to .stl file?
Before exporting, press A in object mode to select everything, this won't select any hidden object.
Then while exporting, check &quot;Selection Only&quot; on the right to export only the selected objects.