-
Notifications
You must be signed in to change notification settings - Fork 562
ppt shape set
zmworm edited this page Mar 19, 2026
·
55 revisions
Modify shape properties, text, styling, animation, and sub-elements (runs, paragraphs).
Path: /slide[N]/shape[M]
All properties from Shape-Add, plus:
| Property | Accepted Values | Description |
|---|---|---|
animation |
animation format | Animation effect |
textWarp |
warp preset | Text warp / WordArt |
image |
file path | Image fill |
shadow |
hex color | Shape shadow |
glow |
hex color | Shape glow |
reflection |
bool | Shape reflection |
spacing / charSpacing / letterSpacing
|
points | Character spacing |
indent |
EMU or units | Paragraph first-line indent |
marginLeft / marL
|
EMU or units | Paragraph left margin |
marginRight / marR
|
EMU or units | Paragraph right margin |
baseline |
super/sub/none/percent |
Baseline shift |
superscript |
bool | Superscript text |
subscript |
bool | Subscript text |
textFill / textGradient
|
gradient format | Gradient fill on text |
geometry / path
|
SVG-like path | Custom geometry path |
flipH |
bool | Flip horizontally |
flipV |
bool | Flip vertically |
softEdge |
points or none
|
Soft edge radius |
rot3d / rotation3d
|
"rotX,rotY,rotZ" or none
|
3D rotation |
rotX |
degrees | 3D rotation X-axis |
rotY |
degrees | 3D rotation Y-axis |
rotZ |
degrees | 3D rotation Z-axis |
bevel / bevelTop
|
preset or "preset-width-height"
|
Top bevel |
bevelBottom |
preset or "preset-width-height"
|
Bottom bevel |
depth / extrusion
|
points or none
|
Extrusion depth |
material |
warmMatte/plastic/metal/etc. |
3D material |
lighting / lightRig
|
threePt/balanced/soft/harsh/etc. |
3D lighting |
zorder / z-order
|
front/back/forward/backward/position |
Z-order |
lineSpacing |
pt or % | Line spacing |
spaceBefore |
pt | Space before paragraph |
spaceAfter |
pt | Space after paragraph |
Format: EFFECT[-CLASS[-DURATION[-TRIGGER]]] or none
Effects: appear, fade, fly, zoom, wipe, bounce, float, split, wheel, spin, grow, swivel, checkerboard, blinds, bars, box, circle, diamond, dissolve, flash, plus, random, strips, wedge, bold, wave, crawl, swipe
Classes: entrance (default), exit, emphasis
Duration: milliseconds (default 500)
Trigger: click (default), after/afterPrevious, with/withPrevious
# Change text and style
officecli set slides.pptx /slide[1]/shape[1] --prop text="Updated text" --prop bold=true
# Move and resize
officecli set slides.pptx /slide[1]/shape[1] --prop x=5cm --prop y=5cm --prop width=15cm --prop height=8cm
# Set animation
officecli set slides.pptx /slide[1]/shape[1] --prop animation=fade-entrance-500
officecli set slides.pptx /slide[1]/shape[1] --prop animation=fly-entrance-800-after
officecli set slides.pptx /slide[1]/shape[1] --prop animation=zoom-exit-500-with
officecli set slides.pptx /slide[1]/shape[1] --prop animation=none
# Set hyperlink
officecli set slides.pptx /slide[1]/shape[1] --prop link=https://example.comSet properties on a specific text run within a shape.
Path: /slide[N]/shape[M]/run[K]
| Property | Accepted Values | Description |
|---|---|---|
text |
text | Run text |
font |
font name | Font |
size |
number (pt) | Size |
bold |
bool | Bold |
italic |
bool | Italic |
color |
hex RGB | Color |
underline |
true/single, double, false
|
Underline |
strike |
true/single, double, false
|
Strikethrough |
link |
URL | Hyperlink |
officecli set slides.pptx /slide[1]/shape[1]/run[1] --prop bold=true --prop color=FF0000Set properties on a specific paragraph.
Path: /slide[N]/shape[M]/paragraph[P]
| Property | Accepted Values | Description |
|---|---|---|
align |
left, center, right, justify
|
Alignment |
| + all run properties | Applied to all runs |
officecli set slides.pptx /slide[1]/shape[1]/paragraph[1] --prop align=centerBased on OfficeCli v1.0.7