from conjuror.plans.truebeam import OpenField, TrueBeamMachine

# Field defined by MLCs
procedure = OpenField(x1=-50, x2=50, y1=-100, y2=100, defined_by_mlc=True, padding=20, beam_name="MLC Defined")
machine = TrueBeamMachine(mlc_is_hd=False)
procedure.compute(machine)
beam = procedure.beams[0]

# Generate MLC animation
beam.animate_mlc(show=False)