Reference navigation
On this page
CLASS · v0.9.1
EEVEE
Keep one Blender process alive while rendering multiple frames.
from proteinmotion.eevee import EEVEEConstructor
EEVEE(width=1920, height=1080, *, options=None)Parameters
| Parameter | Default | Description |
|---|---|---|
width | 1920 | Image width in pixels. |
height | 1080 | Image height in pixels. |
optionskeyword only | None | EEVEEOptions 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
| Name | Description |
|---|---|
| render()method | Render current objects with EEVEE and composite sharp annotations. |
| close()method | Release GPU buffers and renderer resources. |
| __enter__()method | Enter a with Renderer(...) context. |
| __exit__()method | Close renderer resources on context exit. |
EEVEE.render(objects, camera, background)Render current objects with EEVEE and composite sharp annotations.
| Parameter | Default | Description |
|---|---|---|
objects | Required | Current Protein and annotation objects, such as the list returned by scene.seek(time). |
camera | Required | Camera used to project or frame objects. |
background | Required | Three RGB floats in [0, 1]. |
Returns: An RGBA uint8 array with shape (height, width, 4).
EEVEE.close()Release GPU buffers and renderer resources.
Returns: None
EEVEE.__enter__()Enter a with Renderer(...) context.
Returns: The renderer.
EEVEE.__exit__(kind, value, traceback)Close renderer resources on context exit.
| Parameter | Default | Description |
|---|---|---|
kind | Required | Surface type: "vdw", "sas", or "ses". |
value | Required | Value to assign; the supported range depends on the property. |
traceback | Required | Traceback supplied by the context manager. |
Returns: None