direct.interval.MetaInterval

from direct.interval.MetaInterval import MetaInterval, Parallel, ParallelEndTogether, Sequence, Track

This module defines the various “meta intervals”, which execute other intervals either in parallel or in a specified sequential order.

Inheritance diagram

Inheritance diagram of direct.interval.MetaInterval

class MetaInterval(*ivals, **kw)[source]

Bases: CMetaInterval

SequenceNum = 1
__init__(*ivals, **kw)[source]
addInterval(ival, relTime, relTo)[source]
addParallel(list, name, relTime, relTo, duration)[source]
addParallelEndTogether(list, name, relTime, relTo, duration)[source]
addSequence(list, name, relTime, relTo, duration)[source]
addTrack(trackList, name, relTime, relTo, duration)[source]
append(ival)[source]
applyIvals(meta, relTime, relTo)[source]
clearIntervals()[source]
clearToInitial()[source]
count(ival)[source]
property duration
extend(ivals)[source]
finish()[source]
getDuration()[source]
getIntervalStartTime(*args, **kw)[source]
getManager()[source]
index(ival)[source]
insert(index, ival)[source]
loop(startT=0.0, endT=-1.0, playRate=1.0)[source]
property manager
notify = <direct.directnotify.Notifier.Notifier object>
pause()[source]
property play_rate

C++ Interface: get_play_rate(CInterval self)

/**
  • Returns the play rate as set by the last call to start(), loop(), or

  • set_play_rate().

*/

pop(index=None)[source]
privDoEvent(t, event)[source]
privPostEvent()[source]
remove(ival)[source]
resume(startT=None)[source]
resumeUntil(endT)[source]
reverse()[source]
setIntervalStartTime(*args, **kw)[source]
setManager(manager)[source]
setPlayRate(playRate)[source]

Changes the play rate of the interval. If the interval is already started, this changes its speed on-the-fly. Note that since playRate is a parameter to start() and loop(), the next call to start() or loop() will reset this parameter.

setT(t)[source]
sort(cmpfunc=None)[source]
start(startT=0.0, endT=-1.0, playRate=1.0)[source]
property t

C++ Interface: get_t(CInterval self)

/**
  • Returns the current time of the interval: the last value of t passed to

  • priv_initialize(), priv_step(), or priv_finalize().

*/

timeline(out=None)[source]
validateComponent(component)[source]
validateComponents(components)[source]
class Parallel(*ivals, **kw)[source]

Bases: MetaInterval

applyIvals(meta, relTime, relTo)[source]
class ParallelEndTogether(*ivals, **kw)[source]

Bases: MetaInterval

applyIvals(meta, relTime, relTo)[source]
class Sequence(*ivals, **kw)[source]

Bases: MetaInterval

applyIvals(meta, relTime, relTo)[source]
class Track(*ivals, **kw)[source]

Bases: MetaInterval

applyIvals(meta, relTime, relTo)[source]
validateComponent(tupleObj)[source]