IC8 Python API:RLPy RFps

From Reallusion Wiki!
Jump to: navigation, search

Contents

Description

This class provides frame-rate utilities for converting seconds, frame indices, frame times, and timecode strings.

Constructor & Destructor

__init__ (self, tFps)

Initializes a new frame-rate helper instance.

Parameters

  • tFps

Member Functions

BaseOneIndexedFrameTime (self, nFrameIndex)

Returns the time value for a one-based frame index.

Parameters

  • nFrameIndex

EqualFrameTime (self, kA, kB)

Reports whether two time values represent the same frame.

Parameters

  • kA
  • kB

FrameTimeFromSecond (self, fSecond)

Converts seconds to the corresponding frame time.

Parameters

  • fSecond

FromTimecodeFormattedString (self, strTimecode)

Parses a timecode string and returns the corresponding time value.

Parameters

  • strTimecode

GetFrameIndex (self, kTime)

Returns the frame index corresponding to the supplied time value.

Parameters

  • kTime

GetFrameTime (self, kTime)

Returns the time value for the supplied frame index.

Parameters

  • kTime

GetNextFrameTime (self, kTime)

Returns the time of the next frame after the supplied time.

Parameters

  • kTime

GetPreviousFrameTime (self, kTime)

Returns the time of the previous frame before the supplied time.

Parameters

  • kTime

IndexedFrameTime (self, nFrameIndex)

Returns the time value for a zero-based frame index.

Parameters

  • nFrameIndex

IsSameFrame (self, kTime1, kTime2)

Reports whether two frame-time values fall on the same frame.

Parameters

  • kTime1
  • kTime2

LessEqualFrameTime (self, kA, kB)

Reports whether one frame time is less than or equal to another.

Parameters

  • kA
  • kB

LessFrameTime (self, kA, kB)

Reports whether one frame time precedes another.

Parameters

  • kA
  • kB

RoundFrameIndex (self, kTime)

Rounds a time value to the nearest frame index.

Parameters

  • kTime

SecondFromFrameTime (self, kTime)

Converts a frame time to seconds.

Parameters

  • kTime

TickPerFrame (self)

Returns the number of time ticks in one frame.

ToDouble (self)

Returns this frame rate as a double-precision number.

ToFloat (self)

Returns this frame rate as a floating-point number.

ToInt (self)

Returns this frame rate as an integer.

ToInt64 (self)

Returns this frame rate as a 64-bit integer.

ToLong (self)

Returns this frame rate as a long integer.

ToTimecodeFormattedString (self, kTime)

Formats a time value as a timecode string.

Parameters

  • kTime

ToUInt32 (self)

Returns this frame rate as an unsigned 32-bit integer.

UpFrameIndex (self, kTime)

Advances a frame index to the next frame.

Parameters

  • kTime

__eq__ (self, kFps)

Reports whether this value equals another value.

Parameters

  • kFps

__ge__ (self, kFps)

Reports whether this value is greater than or equal to another value.

Parameters

  • kFps

__gt__ (self, kFps)

Reports whether this value is greater than another value.

Parameters

  • kFps

__le__ (self, kFps)

Reports whether this value is less than or equal to another value.

Parameters

  • kFps

__lt__ (self, kFps)

Reports whether this value is less than another value.

Parameters

  • kFps

__ne__ (self, kFps)

Reports whether this value differs from another value.

Parameters

  • kFps

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.

Constants

ByTick

Fps1

Fps10

Fps100

Fps1000

Fps12

Fps120

Fps1200

Fps125

Fps15

Fps150

Fps1500

Fps16

Fps2

Fps20

Fps200

Fps2000

Fps24

Fps240

Fps25

Fps250

Fps3

Fps30

Fps300

Fps3000

Fps375

Fps4

Fps40

Fps400

Fps48

Fps5

Fps50

Fps500

Fps6

Fps60

Fps600

Fps6000

Fps75

Fps750

Fps8

Fps80

Unknown