Scripting (paged.*)
Paged Docs / Scripting with paged.*
Settable paths & id grammar
The property paths accepted by paged.set, and the id grammar for addressing elements — generated from the engine's scripting catalog.
ProIIIreference
In short How you address an element (the id grammar) and what you can
change on it (the settable paths, the second argument to paged.set). Both
are generated from the engine catalog and stay in lockstep with the mutation
layer.
Addressing elements
| Form | Example | Meaning |
|---|---|---|
textFrame:<id> | textFrame:u123 | A text frame. Same scheme: rectangle:/oval:/polygon:/graphicLine:/group:. |
rectangle:<id> | rectangle:u12 | A rectangle (graphic frame). |
oval:<id> | oval:u13 | An oval. |
polygon:<id> | polygon:u14 | A polygon or open path. |
graphicLine:<id> | graphicLine:u15 | A graphic line. |
group:<id> | group:u88 | A group. paged.set("group:<id>", "groupTransform", [a,b,c,d,tx,ty]) moves it as a unit. |
frame:<id> | frame:u123 | Any page item, kind unknown (alias). paged.address / paged.query resolve it to the kind-specific form. |
storyRange:<storyId>@<start>..<end> | storyRange:Story/[email protected] | A character range within a story (half-open). storyId comes from paged.stories()[].selfId. Alias: story:<storyId>@<start>..<end>. |
doc | doc | The document itself. |
page:<id> | page:u1a2 | A body page, by its Self id (paged.pages()[].selfId), or page:#<n> for the n-th page (1-based). |
spread:<id> | spread:u1a1 | A spread, by its Self id. |
layer:<id> | layer:ub3 | A layer, by its Self id (paged.layers()). |
master:<id> | master:ua9 | A master spread. master:<id> > textFrame:<id> names an item on it. |
story:<id> | story:Story/u1 | A story, by its Self id. |
field:<storyId>@<offset> | field:Story/u1@12 | A text field anchored at a story character offset (paged.placeholders / RequestDocumentPlaceholders). |
table:<id> | table:u2f | A table, by its Self id (unique per document). |
cell:<tableId>/<row>,<col> | cell:u2f/0,1 | A table cell, zero-based row and column. |
style:<family>/<selfId> | style:paragraph/ParagraphStyle/Body | A style; family is paragraph | character | object | cell | table. The display name is accepted in place of the Self id. |
swatch:<id> | swatch:Color/Red | A colour or swatch, by its Self id. |
gradient:<id> | gradient:Gradient/u1 | A gradient, by its Self id. |
colorGroup:<id> | colorGroup:ColorGroup/u7 | A colour group. |
numberingList:<id> | numberingList:NumberingList/Steps | A numbering list. |
guide:<id> | guide:u5c | A ruler guide. |
condition:<id> | condition:Condition/Draft | A text condition. |
conditionSet:<id> | conditionSet:u3d | A condition set. |
section:<id> | section:u4e | A numbering section. |
hyperlink:<id> | hyperlink:u6a | A hyperlink. |
textVariable:<id> | textVariable:dTextVariablenFile Name | A text variable, by its Self id (the designmap's TextVariable). Its name is accepted in a selector: textVariable[name="Running Head"]. |
plugin:<pluginId>/<kind>/<id> | plugin:paged.image/layer/7 | An object a plugin owns. Opaque to core and carried through unchanged. |
$h:<name> | $h:newFrame | A batch handle bound earlier in the same batch. |
Settable property paths
Grouped by theme, with the IDML type hint and description where a path maps to a known attribute. Each group links to its runnable showcase.
258 of 258 settable paths, the second argument to paged.set(id, path, value), grouped by theme.
Anchored objects & text wrap15 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameTextWrapMode | — | — |
frameTextWrapOffsets | — | — |
frameTextWrapContourType | — | — |
frameTextWrapContourIncludeInside | — | — |
frameTextWrapInvert | — | — |
anchoredPosition | — | — |
anchorPoint | — | — |
anchoredXOffset | — | — |
anchoredYOffset | — | — |
anchoredHorizontalReference | — | — |
anchoredVerticalReference | — | — |
anchoredHorizontalAlignment | — | — |
anchoredVerticalAlignment | — | — |
anchoredSpineRelative | — | — |
anchoredLockPosition | — | — |
Tables & cells21 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
appliedCellStyle | — | — |
appliedTableStyle | — | — |
cellFillColor | — | — |
cellFillTint | — | — |
cellInsetTop | — | — |
cellInsetLeft | — | — |
cellInsetBottom | — | — |
cellInsetRight | — | — |
cellVerticalJustification | — | — |
cellTopEdgeStrokeColor | — | — |
cellTopEdgeStrokeWeight | — | — |
cellTopEdgeStrokeTint | — | — |
cellBottomEdgeStrokeColor | — | — |
cellBottomEdgeStrokeWeight | — | — |
cellBottomEdgeStrokeTint | — | — |
cellLeftEdgeStrokeColor | — | — |
cellLeftEdgeStrokeWeight | — | — |
cellLeftEdgeStrokeTint | — | — |
cellRightEdgeStrokeColor | — | — |
cellRightEdgeStrokeWeight | — | — |
cellRightEdgeStrokeTint | — | — |
Text & paragraph82 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
characterFontSize | points | Font size in points. |
characterLeading | points | Auto | Line leading. |
characterTracking | 1/1000 em | Letter tracking. |
characterFillColor | swatch ref | Text fill swatch. |
paragraphSpaceBefore | points | Space above the paragraph. |
paragraphSpaceAfter | points | Space below the paragraph. |
paragraphFirstLineIndent | — | — |
appliedParagraphStyle | style ref | The paragraph style applied to the range. |
appliedCharacterStyle | style ref | The character style applied to the range. |
frameInsetSpacing | — | — |
paragraphJustification | enum | Paragraph alignment/justification. |
paragraphStyleNextStyle | — | — |
paragraphAppliedNumberingList | — | — |
textFrameColumnCount | — | — |
textFrameColumnGutter | — | — |
textFrameColumnBalance | — | — |
textFrameVerticalJustification | — | — |
textFrameAutoSizing | — | — |
textFrameFirstBaseline | — | — |
characterFontFamily | — | — |
characterFontStyle | — | — |
characterKerningMethod | — | — |
characterCase | — | — |
characterPosition | — | — |
characterLanguage | — | — |
characterBaselineShift | — | — |
characterHorizontalScale | — | — |
characterVerticalScale | — | — |
characterSkew | — | — |
characterUnderline | — | — |
characterStrikethru | — | — |
characterNoBreak | — | — |
characterLigatures | — | — |
characterOtfFeatures | — | — |
characterHighlightColor | — | — |
characterHidden | — | — |
characterUnderlineType | — | — |
characterUnderlineColor | — | — |
characterDoubleStrikethrough | — | — |
paragraphShadingOn | — | — |
paragraphShadingColor | — | — |
paragraphShadingTint | — | — |
paragraphBorderOn | — | — |
paragraphBorderColor | — | — |
paragraphBorderWeight | — | — |
paragraphLeftIndent | — | — |
paragraphRightIndent | — | — |
paragraphDropCapCharacters | — | — |
paragraphDropCapLines | — | — |
paragraphHyphenation | — | — |
paragraphHyphenationZone | — | — |
paragraphKeepLinesTogether | — | — |
paragraphKeepWithNext | — | — |
paragraphKeepAllLinesTogether | — | — |
paragraphKeepFirstLines | — | — |
paragraphKeepLastLines | — | — |
paragraphStartParagraph | — | — |
paragraphSpanColumnType | — | — |
paragraphSpanSplitColumnCount | — | — |
paragraphSpanColumnMinSpaceBefore | — | — |
paragraphSpanColumnMinSpaceAfter | — | — |
paragraphSplitColumnInsideGutter | — | — |
paragraphSplitColumnOutsideGutter | — | — |
paragraphRuleAbove | — | — |
paragraphRuleBelow | — | — |
paragraphTabStops | — | — |
paragraphListType | — | — |
paragraphBulletCharacter | — | — |
paragraphNumberingFormat | — | — |
paragraphBulletsTextAfter | — | — |
paragraphNumberingExpression | — | — |
paragraphNumberingStartAt | — | — |
paragraphNumberingContinue | — | — |
paragraphNumberingLevel | — | — |
paragraphNumberingApplyRestartPolicy | — | — |
paragraphBulletsCharacterStyle | — | — |
paragraphNumberingCharacterStyle | — | — |
paragraphComposer | — | — |
paragraphAutoLeading | — | — |
paragraphSingleWordJustification | — | — |
paragraphLastLineIndent | — | — |
paragraphBalanceRaggedLines | — | — |
Effects70 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameDropShadow | — | — |
frameDropShadowMode | — | — |
frameDropShadowXOffset | — | — |
frameDropShadowYOffset | — | — |
frameDropShadowSize | — | — |
frameDropShadowOpacity | — | — |
frameDropShadowColor | — | — |
frameInnerShadow | — | — |
frameInnerShadowBlendMode | — | — |
frameInnerShadowColor | — | — |
frameInnerShadowOpacity | — | — |
frameInnerShadowAngle | — | — |
frameInnerShadowDistance | — | — |
frameInnerShadowSize | — | — |
frameInnerShadowChoke | — | — |
frameInnerShadowNoise | — | — |
frameOuterGlow | — | — |
frameOuterGlowBlendMode | — | — |
frameOuterGlowColor | — | — |
frameOuterGlowOpacity | — | — |
frameOuterGlowSpread | — | — |
frameOuterGlowSize | — | — |
frameOuterGlowNoise | — | — |
frameInnerGlow | — | — |
frameInnerGlowBlendMode | — | — |
frameInnerGlowColor | — | — |
frameInnerGlowOpacity | — | — |
frameInnerGlowChoke | — | — |
frameInnerGlowSize | — | — |
frameInnerGlowSource | — | — |
frameInnerGlowNoise | — | — |
frameBevel | — | — |
frameBevelStyle | — | — |
frameBevelTechnique | — | — |
frameBevelDepth | — | — |
frameBevelDirection | — | — |
frameBevelSize | — | — |
frameBevelSoften | — | — |
frameBevelAngle | — | — |
frameBevelAltitude | — | — |
frameBevelHighlightColor | — | — |
frameBevelShadowColor | — | — |
frameBevelHighlightOpacity | — | — |
frameBevelShadowOpacity | — | — |
frameSatin | — | — |
frameSatinBlendMode | — | — |
frameSatinColor | — | — |
frameSatinOpacity | — | — |
frameSatinAngle | — | — |
frameSatinDistance | — | — |
frameSatinSize | — | — |
frameSatinInvert | — | — |
frameFeather | — | — |
frameFeatherWidth | — | — |
frameFeatherCornerType | — | — |
frameFeatherNoise | — | — |
frameFeatherChoke | — | — |
frameDirectionalFeather | — | — |
frameDirectionalFeatherLeftWidth | — | — |
frameDirectionalFeatherRightWidth | — | — |
frameDirectionalFeatherTopWidth | — | — |
frameDirectionalFeatherBottomWidth | — | — |
frameDirectionalFeatherAngle | — | — |
frameDirectionalFeatherNoise | — | — |
frameDirectionalFeatherChoke | — | — |
frameDropShadowBlendMode | — | — |
frameDropShadowSpread | — | — |
frameDropShadowNoise | — | — |
frameDropShadowKnockedOut | — | — |
frameDropShadowUseGlobalLight | — | — |
Corners & fitting12 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameFittingCrops | — | — |
frameFittingType | — | — |
frameFittingReferencePoint | — | — |
frameAutoFit | — | — |
frameCornerOptionTopLeft | — | — |
frameCornerOptionTopRight | — | — |
frameCornerOptionBottomLeft | — | — |
frameCornerOptionBottomRight | — | — |
frameCornerRadiusTopLeft | — | — |
frameCornerRadiusTopRight | — | — |
frameCornerRadiusBottomLeft | — | — |
frameCornerRadiusBottomRight | — | — |
Strokes & dashes17 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameStrokeColor | swatch ref | Stroke swatch. |
frameStrokeWeight | points | Stroke weight in points. |
frameStrokeEndCap | — | — |
frameStrokeStartArrowhead | — | — |
frameStrokeEndArrowhead | — | — |
frameGradientStrokeAngle | — | — |
frameGradientStrokeLength | — | — |
frameStrokeType | — | — |
frameStrokeJoin | — | — |
frameStrokeMiterLimit | — | — |
frameStrokeAlignment | — | — |
frameStrokeGapColor | — | — |
frameStrokeGapTint | — | — |
frameStrokeDashArray | — | — |
frameOverprintStroke | — | — |
frameStrokeOpacity | — | — |
frameStrokeBlendMode | — | — |
Fills & gradients9 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameFillColor | swatch ref | Fill swatch (e.g. Color/Red). |
frameFillTint | 0–100 | Fill tint percentage. |
frameGradientFillAngle | — | — |
frameGradientFillLength | — | — |
frameFillRule | — | — |
frameGradientFillStart | — | — |
frameOverprintFill | — | — |
frameFillOpacity | — | — |
frameFillBlendMode | — | — |
Transform & geometry13 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameBounds | [t,l,b,r] points | Page-local bounds in points. |
frameTransform | affine [a,b,c,d,e,f] | The frame's affine placement transform. |
imageContentTransform | — | — |
framePathPoint | — | — |
pathPointInsert | — | — |
pathPointRemove | — | — |
pathPointCurveType | — | — |
framePath | — | — |
frameRotationAngle | — | — |
frameScaleX | — | — |
frameScaleY | — | — |
frameFlipH | — | — |
frameFlipV | — | — |
Blend & opacity3 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
frameOpacity | — | — |
frameNonprinting | — | — |
frameBlendMode | — | — |
Styles, layers & visibility16 Run in the lab ▸
| Path | Type | Meaning |
|---|---|---|
appliedObjectStyle | — | — |
itemLayer | — | — |
appliedConditions | — | — |
framePdfPage | — | — |
frameContentOpacity | — | — |
frameContentBlendMode | — | — |
groupIsolateBlending | — | — |
groupKnockout | — | — |
groupClip | — | — |
frameGradientFeather | — | — |
rowStartRow | — | — |
rowKeepWithNext | — | — |
pluginMetadata | — | — |
elementVisible | — | — |
elementLocked | — | — |
itemName | — | — |