ProteinMotion 0.12.0 — cutaways, depth tunnels, and threading
ProteinMotion 0.12.0 adds cutaways, depth tunnels, and threading animations.
python -m pip install --upgrade proteinmotion- Cutaways.
Reveal(camera, region)opens a window onto a hidden selection that follows the camera;Conceal(camera)closes it. Atoms are hidden for display only; nothing moves. Molecular surfaces are carved down to the selection. - Depth tunnels.
shape="tunnel"drills a tunnel fixed to the molecule, with a ring every 5 Å from the surface, to show how deep a selection lies.camera.animate.depth_cue(...)eases the distance fog, andcamera.clearest_view(region)finds the least-occluded view. - Threading.
Thread(protein, camera)flies a wire in for each chain from its own side of the screen; each wire enters at the C terminus, traces the backbone to the N terminus, and the protein fades in.Unthreadreverses it. Options includestagger,easing, and glowing tips withglow,glow_color, andglow_brightness.
Cutaways, tunnels, and the glow are drawn by the native renderer; EEVEE renders the full molecule and plain wires.
Validation: 205 tests passed on Apple silicon with EEVEE enabled; five NVIDIA-only tests were skipped. A fresh installation of the release wheel passed dependency, CLI, packaged-resource, starter-scene, and skill checks, then rendered and decoded a Metal/VideoToolbox movie.
Cutaways and tunnels · Threading · Gallery · Validation details