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

# MotionPath

## Overview

`MotionPath` is a class in Aspose.Slides FOSS for Python.
Inherits from: `IMotionPath`.

Represent motion path.

This class provides 8 methods for working with MotionPath objects in Python programs.
Available methods include: `__init__`, `add`, `as_i_enumerable`, `clear`, `count`, `insert`, `remove`, `remove_at`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_i_enumerable`, `count`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | `int` | Read | Gets the count. |
| `as_i_enumerable` | `Any` | Read | Gets the as i enumerable. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` |  |
| `add(type, pts, pts_type, b_relative_coord)` → `IMotionCmdPath` | Creates and appends a new motion command with given type and points |
| `insert(index, type, pts, pts_type, b_relative_coord)` | Inserts a new motion command at the specified index |
| `clear()` | Removes all motion commands from the path |
| `remove(item)` |  |
| `remove_at(index)` | Removes the motion command at the given index |
| `count()` → `int` | Returns the number of paths in the collection. |
| `as_i_enumerable()` → `Any` | Allows to get base IBehavior interface. |

## See Also

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