Page MenuHome

Can't Access bpy.context inside Application Timer
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-06-13 11:43, hash: rB1f1b638b4030
Worked: (optional)

Short description of error
I can't access anything of the bpy.context inside the application time making it useless. I could access bpy.context.scene few weeks ago.

Exact steps for others to reproduce the error

Run this on the console returns only "None"

import bpy

def timer():
    print(bpy.context.scene)
    print(bpy.context.window)
    print(bpy.context.screen)
    print(bpy.context.area)
    return 1

bpy.app.timers.register(timer)