panda3d.egg.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

Inheritance diagram of EggSAnimData

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

EggSAnimData

static getClassType() → TypeHandle
Return type

TypeHandle

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().

optimize() → None

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

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

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