ReferenceScripting APIPathComponentconstructor
PathComponent.constructor
constructorBinds a layer to a mote by hand. A mote's components are made with it, from the layers it's given in Studio, so you rarely need this.
| Name | constructor |
|---|---|
| Kind | constructor of PathComponent |
| Called as | new PathComponent(…) |
| Since | 0.3 |
Syntax
new PathComponent( name?: string, layer?: string): PathComponentParameters
| Name | Type | Description |
|---|---|---|
name | string | Optional. Its name on the mote |
layer | string | Optional. The layer's name or id |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.