InDesign2027
API 22.0.0.104
Collection of GenAIModel new

GenAIModels

GenAI models

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ GenAIModel

Returns the GenAIModel with the specified index.

index Number The index.
→ GenAIModel

Creates a new GenAIModel.Fails with “Invalid object for this request.” in InDesign 2027 (22.0) — scripts cannot add GenAI models.

withProperties? Object Initial values for properties of the new GenAIModel
→ GenAIModel

Returns any GenAIModel in the collection.

→ Number

Displays the number of elements in the GenAIModel.

→ GenAIModel[]

Returns every GenAIModel in the collection.

→ GenAIModel

Returns the first GenAIModel in the collection.

→ GenAIModel

Returns the GenAIModel with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ GenAIModel

Returns the GenAIModel with the specified ID.

id Number The ID.
→ GenAIModel

Returns the GenAIModel with the specified name.

name String The name.
→ GenAIModel[]

Returns the GenAIModels within the specified range.

from GenAIModel | LongInteger | String The GenAIModel, index, or name at the beginning of the range. Can accept: GenAIModel, Long Integer or String.
to GenAIModel | LongInteger | String The GenAIModel, index, or name at the end of the range. Can accept: GenAIModel, Long Integer or String.
→ GenAIModel

Returns the last GenAIModel in the collection.

→ GenAIModel

Returns the middle GenAIModel in the collection.

→ GenAIModel

Returns the GenAIModel whose index follows the specified GenAIModel in the collection.

obj GenAIModel The GenAIModel whose index comes before the desired GenAIModel.
→ GenAIModel

Returns the GenAIModel with the index previous to the specified index.

obj GenAIModel The index of the GenAIModel that follows the desired GenAIModel.
→ String

Generates a string which, if executed, will return the GenAIModel.

Object of 1

Properties elsewhere that hold a GenAIModels.