ShapeEditor

From Silhouette Wiki
Revision as of 15:28, 26 July 2018 by Paul (talk | contribs) (Created page with "The ShapeEditor object can be used to manipulate shape control points on specific keys or over a range of keys. === Methods === {| class="wikitable" ! scope="col" | Name ! s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The ShapeEditor object can be used to manipulate shape control points on specific keys or over a range of keys.

Methods

Name Description
makeKey(frame) Makes a new key on the specified frame
deletePoints(selected=False, index=-1) If selected is True, deletes the selected control points, otherwise deletes the point at index if >= 0
addPoints(index, count=1) Adds count points to the shape, starting at index. The points will be a copy of the point at index and should be updated immediately
copyPoints(src_shape, src_index, target_index, count) Copies the points in the range (src_index, src_index + count) from the source shape into the range (target_index, target_index + count) in the edited shape