# panda3d.egg.EggSAnimData¶

from panda3d.egg import EggSAnimData

class EggSAnimData

Bases: EggAnimData

Corresponding to an <S\$Anim> entry, this stores a single column of numbers, for instance for a morph target, or as one column in an EggXfmSAnim.

Inheritance diagram

__init__(copy: EggSAnimData) → None
__init__(name: str) → None
assign(copy: EggSAnimData) → EggSAnimData
Return type

EggSAnimData

getNumRows() → int

Returns the number of rows in the table. For an SAnim table, each row has one column.

getValue(row: int) → float

Returns the value at the indicated row. Row must be in the range 0 <= row < getNumRows().

setValue(row: int, value: float) → None

Changes the value at the indicated row. Row must be in the range 0 <= row < getNumRows().

optimize() → None

Optimizes the data by collapsing a long table of duplicate values into a single value.

static getClassType() → TypeHandle
Return type

TypeHandle