Skip to main content
2 of 2
edited tags

Turning off anti-aliasing: inconsistency between 'info' window and valid python commands

I want to render an image without anti-aliasing. Using the UI, I select the Workbench engine. Then, under Sampling, I set Render to No Anti-Aliasing.

This displays the following commands in the info window:

bpy.context.scene.render.engine = 'BLENDER_WORKBENCH'
bpy.context.scene.render_aa = 'OFF'

When I try the same commands in the console, or in a stand-alone script, I get the following error:

AttributeError: 'Scene' object has no attribute 'render_aa'

Why is the info window lying to me?

Further, how can I turn off anti-aliasing in the Workbench engine with python?