an.probe#
an probe: a shot’s frame at chosen instants, through the very path render draws it (an#347).
Looking at one moment of a shot used to mean a whole render, or a throwaway
script that staged the scene its own way and drew something else. A probe
prepares the shot exactly as an.render.render() does (_prepare_shots:
settled length, burned captions, the style pack, the resolved knobs), then asks
the shot’s own renderer for the frames showing at the instants given:
a frame-stage renderer (the stage engine, the cut-out renderer) opens the session
renderopens and captures throughan.engines.capture.capture_frames()— supersample, frame clock andcanvas readback included — only the frames asked for (
an.engines.frame_stage.FrameStageRenderer.probe_frames());a renderer that owns its clock (Manim) serves the frames from the picture a render stored, or refuses with the remedy;
any other renderer refuses: it has no
probe_frames.
Speech plays as the last render (or synthesis) stamped it: a probe never synthesises a line. Nothing is cached, written to the shot cache or archived.
Rights. A frame showing material that is not publishable (an credits
for the shot says private or unknown) is refused at a path inside a git work
tree that does not ignore it; the default folder, artifacts/probes/, is
ignored by an init and added to an older project’s .gitignore.
Functions
|
PNG bytes of shot |
|
PNG bytes of shot |
|
Write shot |
Exceptions
A probe cannot draw what was asked: the message says why and what to do. |
- exception an.probe.ProbeError[source]#
Bases:
RuntimeErrorA probe cannot draw what was asked: the message says why and what to do.
- an.probe.frame(project, shot, t, **kwargs)[source]#
PNG bytes of shot
shot’s film frame attseconds (seeframes()).- Return type:
- an.probe.frames(project, shot, times, *, supersample=1)[source]#
PNG bytes of shot
shot’s film frame at each oftimes(seconds into the shot).project: a loaded
Projector its folder supersample: asan render --supersample(the frame is the film’s onlyif it matches the render’s)
- an.probe.probe(project_dir, shot, at, *, out=None, columns=None, supersample=1, allow_private_here=False)[source]#
Write shot
shot’s frames atatto one PNG (a grid for several instants).out: the PNG to write (default
<project>/artifacts/probes/<shot>@<t>.png) columns: cells per row of a grid (default: a square grid) allow_private_here: write not-publishable frames inside a git work treethat does not ignore the path
- Return type: