In the object properties, youYou can turn off Ray Visibility of the 'emission object' for the camera:
As of. In Blender 23.760+ go to Object Properties > Visibility, open up the Ray Visibility panel was renamed toand disable the Cycles SettingsCamera property:
As of Blender 2.8x, Ray Visibility panel is now part of the new Visibility Panel:
As of Blender 2.76 the Ray Visibility panel was renamed to Cycles Settings:
Blender 2.7x
You can also run thisthe following script to toggle the Camera Ray Visibility for selectedall selected objects (updated for 2.8x):
Blender 3.1+
import bpy
for obj in bpy.context.selected_objects:
# toggle mesh lights
if obj.type == 'MESH':
for slot in obj.material_slots:
if slot.material:
for node in slot.material.node_tree.nodes:
if node.type == "EMISSION":
obj.visible_camera = not obj.visible_camera
# toggle light types
if obj.type == 'LIGHT':
obj.visible_camera = not obj.visible_camera
Blender 2.8+
import bpy
for obj in bpy.context.selected_objects:
# toggle mesh lights
if obj.type == 'MESH':
for slot in obj.material_slots:
if slot.material:
for node in slot.material.node_tree.nodes:
if node.type == "EMISSION":
obj.cycles_visibility.camera = not obj.cycles_visibility.camera
# toggle light types
if obj.type == 'LIGHT':
obj.cycles_visibility.camera = not obj.cycles_visibility.camera