Reference for get_segments
Retrieve shape segments. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
get_segments
Sound (future)
Style
System
Text
Transform
Purpose
Retrieve objects describing each of the segments in a shape.
Snippet
Inspect a closed shape.
shape = sketch.start_shape(50, 100) shape.add_line_to(150, 200) shape.add_line_to(150, 250) shape.close() print(len(shape.get_segments()))
Availability
Available for all platforms.