Post #674:
Sp
📋 Metadata
- Author: Way2Close
- Date: 2017-05-20 13:03:44
- Type:
answer - Quality Score: 8/10
- Reply to: post_00673
- Replies (1): post_00675
🏷️ Tags
macro hotkeys intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
SpdB3d:
Ambient Occlusion does not show at all.
This is the code I use to toggle ssao, just throw it in a script and link to it with pme.
for area in bpy.context.screen.areas: if area.type == ‘VIEW_3D’:
space_data = area.spaces.active
fx = space_data.fx_settings
fx.use_ssao = not(fx.use_ssao)
break