I had an old clip-on webcam that I wanted to use on my octopi so I designed this thing. It's printered in 2 parts that clip together.There are some holes for tie wraps to fix the cable.
I printed in ABS with 20% infill at 100% and I have a nice snug fit between the 2 parts and between the mount and the frame.
The holder itself can be printed normally with the top facing the bed.
The top part can be printed with the top part on the bed, but you better use a raft to improve bed adhesion.