In this work, we demonstrate for the first time the capability to inscribe long-period gratings (LPGs) with UV radiation using simple and low cost amplitude masks fabricated with a consumer grade 3D printer. The spectrum obtained for a grating with 690 µm period and 38 mm length presented good quality, showing sharp resonances (i.e., 3 dB bandwidth < 3 nm), low out-of-band loss (~0.2 dB), and dip losses up to 18 dB. Furthermore, the capability to select the resonance wavelength has been demonstrated using different amplitude mask periods. The customization of the masks makes it possible to fabricate gratings with complex structures. Additionally, the simplicity in 3D printing an amplitude mask solves the problem of the lack of amplitude masks on the market and avoids the use of high resolution motorized stages, as is the case of the point-by-point technique. Finally, the 3D printed masks were also used to induce LPGs using the mechanical pressing method. Due to the better resolution of these masks compared to ones described on the state of the art, we were able to induce gratings with higher quality, such as low out-of-band loss (0.6 dB), reduced spectral ripples, and narrow bandwidths (~3 nm).