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

# Sequence

## Overview

`Sequence` is a class in Aspose.Slides FOSS for Python.
Inherits from: `ISequence`.

Represents sequence (collection of effects).

This class provides 15 methods for working with Sequence objects in Python programs.
Available methods include: `add_effect`, `as_i_enumerable`, `clear`, `count`, `get_count`, `get_effects_by_paragraph`, `get_effects_by_shape`, `remove`, `remove_at`, `remove_by_shape`, `trigger_shape`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_i_enumerable`, `count`, `trigger_shape`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | `int` | Read | Gets the count. |
| `trigger_shape` | `IShape` | Read/Write | Gets or sets the trigger shape. |
| `as_i_enumerable` | `Any` | Read | Gets the as i enumerable. |

## Methods

| Signature | Description |
|-----------|-------------|
| `add_effect(shape, effect_type, subtype, trigger_type)` → `IEffect` | Adds an animation effect to a chart series/category identified by series and category indexes with specified effect settings |
| `add_effect(paragraph, effect_type, subtype, trigger_type)` → `IEffect` |  |
| `add_effect(chart, type, index, effect_type, subtype, trigger_type)` → `IEffect` |  |
| `add_effect(chart, type, series_index, categories_index, effect_type, subtype, trigger_type)` → `IEffect` |  |
| `add_effect()` → `IEffect` | Add an animation effect to the sequence. |
| `remove(item)` | Deletes the specified effect or item from the animation sequence |
| `remove_at(index)` |  |
| `clear()` |  |
| `remove_by_shape(shape)` | Deletes all effects that target the provided shape |
| `get_effects_by_shape(shape)` → `list[IEffect]` | Returns a list of effects applied to the given shape |
| `get_effects_by_paragraph(paragraph)` → `list[IEffect]` | Get effects that target a specific paragraph. |
| `get_count(shape)` → `int` |  |
| `count()` → `int` | Returns the number of effects in a sequense. |
| `trigger_shape()` → `IShape` | Returns or sets shape target for INTERACTIVE sequence. |
| `as_i_enumerable()` → `Any` | Allows to get base IEnumerable interface. |

## See Also

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