-
Notifications
You must be signed in to change notification settings - Fork 542
ppt shape set
zmworm edited this page Mar 18, 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 |
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.6