ProteinMotion
Reference navigation
On this page

CLASS · v0.9.1

EEVEE

Keep one Blender process alive while rendering multiple frames.

python
from proteinmotion.eevee import EEVEE

Constructor

python
EEVEE(width=1920, height=1080, *, options=None)

Parameters

ParameterDefaultDescription
width1920Image width in pixels.
height1080Image height in pixels.
optionskeyword onlyNoneEEVEEOptions instance, or None for defaults.

Notes

Use as a context manager. This backend exports molecular geometry to Blender and composites vector annotations afterward.

Methods and properties

NameDescription
render()methodRender current objects with EEVEE and composite sharp annotations.
close()methodRelease GPU buffers and renderer resources.
__enter__()methodEnter a with Renderer(...) context.
__exit__()methodClose renderer resources on context exit.
python
EEVEE.render(objects, camera, background)

Render current objects with EEVEE and composite sharp annotations.

ParameterDefaultDescription
objectsRequiredCurrent Protein and annotation objects, such as the list returned by scene.seek(time).
cameraRequiredCamera used to project or frame objects.
backgroundRequiredThree RGB floats in [0, 1].

Returns: An RGBA uint8 array with shape (height, width, 4).

python
EEVEE.close()

Release GPU buffers and renderer resources.

Returns: None

python
EEVEE.__enter__()

Enter a with Renderer(...) context.

Returns: The renderer.

python
EEVEE.__exit__(kind, value, traceback)

Close renderer resources on context exit.

ParameterDefaultDescription
kindRequiredSurface type: "vdw", "sas", or "ses".
valueRequiredValue to assign; the supported range depends on the property.
tracebackRequiredTraceback supplied by the context manager.

Returns: None