class SmartObject extends BasePageAction

Represents an embedded smart object in a Photoshop document.

Learn more: Extract the original content of an embedded Photoshop object

Methods

byLayerName(string $name, int $index = null)

Creates an instance using the name.

byLayerNames(string ...$names)

Creates a new instance using provided names.

byIndex(int $index)

Creates and instance using the index.

Details

PageLayerNameTrait byLayerName(string $name, int $index = null)

Creates an instance using the name.

Parameters

Name Type Description
$name string The name
$index int The optional index.

Return Value

PageLayerNameTrait

PageLayerNamesTrait byLayerNames(string ...$names)

Creates a new instance using provided names.

Parameters

Name Type Description
...$names string The names.

Return Value

PageLayerNamesTrait

PageIndexTrait byIndex(int $index)

Creates and instance using the index.

Parameters

Name Type Description
$index int The index.

Return Value

PageIndexTrait

Constants

MAIN_QUALIFIER