set_object_ray_visibility
Control which rays see a Blender object: hide it from the camera while preserving shadows, exclude reflections, or enable shadow catcher for compositing.
Instructions
Choose which rays see an object: hide it from the camera but keep its shadow, keep it out of reflections, or turn it into a shadow catcher.
Leave anything unset to keep it.
Args: object_name: Object to change. camera: Seen directly by the camera. diffuse: Lights matte surfaces by bounced light. glossy: Shows in reflections. transmission: Shows through glass. volume_scatter: Affects smoke and fog. shadow: Casts shadows. holdout: Cut a transparent hole where the object is, for compositing. shadow_catcher: Cycles only. Show only the shadows other objects cast on it, for placing renders into photos (pair with set_film transparent).
Returns: Dict with every visibility flag after the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera | No | ||
| glossy | No | ||
| shadow | No | ||
| diffuse | No | ||
| holdout | No | ||
| object_name | Yes | ||
| transmission | No | ||
| shadow_catcher | No | ||
| volume_scatter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||