how to hide 3d widget from scenecapture2d?

the answer was found in this post: