Blender 2.8 Python Set Object Active
context.view_layer.objects.active = ob
Strange Salmon
context.view_layer.objects.active = ob