eff.Separate()
Breaks the effect into standalone objects. A separated drop shadow becomes a real shape you can recolor and move on its own — the last step in a lot of effect work.
Signature
eff.Separate()
Notes
Breaks the effect into standalone objects. A separated drop shadow becomes a real shape you can recolor and move on its own — the last step in a lot of effect work.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
eff = shape.CreateDropShadow(0, 50, 15, 0.05, -0.05,
app.CreateRGBColor(0, 0, 0))
eff.Separate() # the shadow becomes its own object
after = app.ActiveSelectionRange(1) # re-read the selection
print("Shapes after breaking the effect: ", after.Count)
About this section: Effects
Effects — drop shadow, blend, contour, extrude and lens.
- This section has 12 entries; this is one of them.
- See the full section index: Effects
Other entries in this section
- shape.Effect / shape.EffectsEffect is the first effect; Effects is the whole collection. Count Eff
- shape.CreateDropShadow(Type, Opacity, Feather, OffsetX, OffsetY, Color)Adds a drop shadow. Arguments: type (0 flat), opacity 0-100, feather 0
- eff.DropShadow.Opacity / Direction / ColorShadow settings you can adjust afterwards: opacity, direction, color.
- shape.CreateBlend(target_shape)Blend: generates a run of intermediate objects between two shapes. The
- shape.CreateContour(Offset)Contour: rings the shape outward or inward. Neon lettering, sticker ed
- shape.CreateExtrude(Depth)Extrude: pulls a flat shape into depth. 3D lettering, boxes. A larger
- shape.CreateLens(Type)Lens: drops a piece of filter glass on the shape so whatever sits bene
- shape.CreateEnvelope()Envelope: bends the shape inside a control cage. Arced text, patterns