# ParticleInterval

from direct.interval.ParticleInterval import ParticleInterval

Use this interval when you want to have greater control over a ParticleEffect. The interval does not register the effect with the global particle and physics managers, but it does call upon them to perform its stepping. You should NOT call particleEffect.start() with an effect that is being controlled by a ParticleInterval.

## Inheritance:

ParticleInterval: Interval
Interval: DirectObject
DirectObject:

## Methods of ParticleInterval:

__init__
__softStart
__softStop
__step
privFinalize
privInitialize
privInstant
privStep

## Methods of Interval:

__init__
__playTask
__removeTask
__repr__
__spawnTask
clearToInitial
finish
getDoneEvent
getDuration
getLoop
getName
getOpenEnded
getPlayRate
getState
getT
intervalDone
isPaused
isPlaying
isStopped
loop
pause
popupControls
privDoEvent
privFinalize
privInitialize
privInstant
privInterrupt
privPostEvent
privReverseFinalize
privReverseInitialize
privReverseInstant
privStep
resume
resumeUntil
setDoneEvent
setLoop
setPlayRate
setT
setupPlay
setupResume
start
stepPlay

## Methods of DirectObject:

__init__
_addTask
_clearTask
accept
acceptOnce
addTask
classTree
detectLeaks
doMethodLater
getAllAccepting
ignore
ignoreAll
isAccepting
isIgnoring
removeAllTasks
removeTask

__init__ def __init__(self, particleEffect, parent, worldRelative=1, renderParent=None, duration=0.0, softStopT=0.0, cleanup=False, name=None) particleEffect is a ParticleEffect parent is a NodePath: this is where the effect will be parented in the scenegraph worldRelative is a boolean: this will override 'renderParent' with render renderParent is a NodePath: this is where the particles will be rendered in the scenegraph duration is a float: for the time softStopT is a float: no effect if 0.0, a positive value will count from the start of the interval, a negative value will count from the end of the interval cleanup is a boolean: if True the effect will be destroyed and removed from the scenegraph upon interval completion set to False if planning on reusing the interval name is a string: use this for unique intervals so that they can be easily found in the taskMgr

__softStart def __softStart(self) Undocumented function.

__softStop def __softStop(self) Undocumented function.

__step def __step(self, dt) Undocumented function.

privFinalize def privFinalize(self) Undocumented function.

privInitialize def privInitialize(self, t) Undocumented function.

privInstant def privInstant(self) Undocumented function.

privStep def privStep(self, t) Undocumented function.

__init__ def __init__(self, name, duration, openEnded=1) Undocumented function.

__playTask def __playTask(self, task) Undocumented function.

__removeTask def __removeTask(self) Undocumented function.

__repr__ def __repr__(self, indent=0) Undocumented function.

__spawnTask def __spawnTask(self) Undocumented function.

clearToInitial def clearToInitial(self) Undocumented function.

finish def finish(self) Undocumented function.

getDoneEvent def getDoneEvent(self) Undocumented function.

getDuration def getDuration(self) Undocumented function.

getLoop def getLoop(self) Undocumented function.

getName def getName(self) Undocumented function.

getOpenEnded def getOpenEnded(self) Undocumented function.

getPlayRate def getPlayRate(self) Returns the play rate as set by the last call to start(), loop(), or setPlayRate().

getState def getState(self) Undocumented function.

getT def getT(self) Undocumented function.

intervalDone def intervalDone(self) Undocumented function.

isPaused def isPaused(self) Undocumented function.

isPlaying def isPlaying(self) Undocumented function.

isStopped def isStopped(self) Undocumented function.

loop def loop(self, startT=0.0, endT=-1.0, playRate=1.0) Undocumented function.

pause def pause(self) Undocumented function.

popupControls def popupControls(self, tl=None) Popup control panel for interval.

privDoEvent def privDoEvent(self, t, event) Undocumented function.

privFinalize def privFinalize(self) Undocumented function.

privInitialize def privInitialize(self, t) Undocumented function.

privInstant def privInstant(self) Undocumented function.

privInterrupt def privInterrupt(self) Undocumented function.

privPostEvent def privPostEvent(self) Undocumented function.

privReverseFinalize def privReverseFinalize(self) Undocumented function.

privReverseInitialize def privReverseInitialize(self, t) Undocumented function.

privReverseInstant def privReverseInstant(self) Undocumented function.

privStep def privStep(self, t) Undocumented function.

resume def resume(self, startT=None) Undocumented function.

resumeUntil def resumeUntil(self, endT) Undocumented function.

setDoneEvent def setDoneEvent(self, event) Undocumented function.

setLoop def setLoop(self, loop=1) Undocumented function.

setPlayRate def setPlayRate(self, playRate) 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 def setT(self, t) Undocumented function.

setupPlay def setupPlay(self, startT, endT, playRate, doLoop) Undocumented function.

setupResume def setupResume(self) Undocumented function.

start def start(self, startT=0.0, endT=-1.0, playRate=1.0) Undocumented function.

stepPlay def stepPlay(self) Undocumented function.

__init__ def __init__(self) Undocumented function.

_addTask def _addTask(self, task) Undocumented function.

_clearTask def _clearTask(self, task) Undocumented function.

accept def accept(self, event, method, extraArgs=[]) Undocumented function.

acceptOnce def acceptOnce(self, event, method, extraArgs=[]) Undocumented function.

addTask def addTask(self, *args, **kwargs) Undocumented function.

classTree def classTree(self) Undocumented function.

detectLeaks def detectLeaks(self) Undocumented function.

doMethodLater def doMethodLater(self, *args, **kwargs) Undocumented function.

getAllAccepting def getAllAccepting(self) Undocumented function.

ignore def ignore(self, event) Undocumented function.

ignoreAll def ignoreAll(self) Undocumented function.

isAccepting def isAccepting(self, event) Undocumented function.

isIgnoring def isIgnoring(self, event) Undocumented function.

removeAllTasks def removeAllTasks(self) Undocumented function.

removeTask def removeTask(self, taskOrName) Undocumented function.