MCPcopy Create free account
hub / github.com/coldtype/st2 / is_rendering

Function is_rendering

ST2/properties.py:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 setattr(obj.st2, prop, getattr(active.st2, prop))
24
25def is_rendering():
26 try:
27 for area in bpy.context.screen.areas:
28 if area.type == 'VIEW_3D':
29 for space in area.spaces:
30 if space.type == 'VIEW_3D' and space.shading.type == "RENDERED":
31 return True
32 except:
33 pass
34 return False
35
36
37def update_type_frame_change(scene, depsgraph):

Callers 1

update_type_frame_changeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected