ProteinMotion
Reference navigation
On this page

CLASS · v0.9.1

RegionAnimate

Create styling animations through region.animate.

python
from proteinmotion.styling import RegionAnimate

Constructor

python
RegionAnimate(region)

Parameters

ParameterDefaultDescription
regionRequiredRegion selection attached to a protein.

Notes

set_color() returns Colorize; set_opacity() returns SetOpacity. Their keyword options include residue_delay, reverse, and easing.

Methods and properties

NameDescription
set_color()methodApply a tint across all representations. None restores the base palette.
set_opacity()methodSet or animate opacity in [0, 1].
python
RegionAnimate.set_color(color, **kwargs)

Apply a tint across all representations. None restores the base palette.

ParameterDefaultDescription
colorRequiredHex color or RGB values. For tint setters, None restores the representation’s base palette.
**kwargsAdditional keyword options described below or in the linked constructor.

Returns: The object or a Colorize animation.

python
RegionAnimate.set_opacity(opacity, **kwargs)

Set or animate opacity in [0, 1].

ParameterDefaultDescription
opacityRequiredOpacity in [0, 1], from transparent to opaque.
**kwargsAdditional keyword options described below or in the linked constructor.

Returns: The object or animation builder.