---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/lightrig
---

# LightRig

## Overview

`LightRig` is a class in Aspose.Slides FOSS for Python.
Inherits from: `PVIObject`, `ISlideComponent`, `IPresentationComponent`, and 1 more.

Represents LightRig.

This class declares 3 methods for LightRig objects in Python programs.
Available methods include: `__setattr__`, `get_rotation`, `set_rotation`.
Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_i_presentation_component`, `direction`, `light_type`, `presentation`, `slide`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `direction` | `LightingDirection` | Read/Write | Light direction. |
| `light_type` | `LightRigPresetType` | Read/Write | Represents a preset light right that can be applied to a shape. |
| `as_i_presentation_component` | `IPresentationComponent` | Read | Allows to get base IPresentationComponent interface. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `set_rotation(latitude, longitude, revolution)` | Sets the rotation value. |
| `get_rotation()` → `list[float]` | Returns the rotation. |
| `__setattr__(name: str, value)` | Calls __setattr__(name, value) on this LightRig instance. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)