setDotLife() for stationary RDK

Hey

I want to program a classical random dot task. After participants respond I want to “freeze” the random dots. My approach is to set the Speed of the dots to 0 (via dots.setSpeed(0)) and also the dotLife to -1 (for infinity life). However, there is no function setDotLife() or setLife(). What is the right function name for setting the dotLife? If there is none do you have a better approach?

dots.setDir(direction)
dots.setSpeed(DOT_SPEED)
dots.setDotLife(DOT_LIFE) # Does not work

for frameN in range(DOT_STIM_DUR):

        frameN += 1

        dots.draw()
        win.flip()

        # Check for response
        theseKeys = keyboard.getPresses(keys = [' '])
        if len(theseKeys)>0 and not PRESSED:
            RT = dotsClock.getTime()
            RT_frame = frameN
            PRESSED = True
            break

        # Instant abortion
        if keyboard.getPresses(keys=["escape"]):
            tracker.setConnectionState(False)
            win.close()
            io.quit()
            core.quit()

dots.setSpeed(0)
dots.setDotLife(-1) # Does not work

for stationary_dots in range(STATIONARY_DOTS_DUR):

        frameN += 1

        dots.draw()
        win.flip()


problem solved with dots.dotLife = -1