Addon ID

  • polygon

Info

Statistics

  • Download count16 total downloads
  • Latest download count 0 downloads of latest version
  • Average download count4 downloads per day average

Owners

A list of all Actions, Conditions and Expressions supported in this addon.

Boolean Cut & Merge

  • Actions

    Guillotine {1}% from {0} edge

    Permanently slices and removes a percentage of the mathematical shape.

    Guillotine sweep from {0}° to {1}°

    Permanently slices the shape using a pie wedge (starts at 0° pointing right).

    Convert line to solid (Thickness: {0})

    Inflates an open path/line into a thick, closed solid shape for cutting.

    Merge with Polygon (UID: {0})

    Performs a Boolean Union, permanently merging the shape of the target polygon into this one.

    Cut hole using Polygon (UID: {0})

    Performs a Boolean Difference, permanently subtracting the shape of the target polygon from this one.

    Merge with polygons (UIDs: {0})

    Merges multiple shapes at once using a comma-separated list of UIDs.

    Cut hole using polygons (UIDs: {0})

    Cuts multiple holes at once using a comma-separated list of UIDs.

  • Conditions

    Is overlapping Polygon (UID: {0})

    True if the visual geometry of this polygon intersects the target polygon.

Visual Masks

  • Actions

    Hide {1}% visually from {0} edge

    Acts like CSS clip-path. Hides a percentage of the shape visually without destroying the points or collision bounds.

    Sweep visual mask from {0}° to {1}°

    Hides the shape outside the specified pie wedge without destroying the points.

Shape Templates

  • Actions

    Set shape to Rectangle (Width: {0}, Height: {1}, Closed: {2})

    Sets the polygon to a rectangle.

    Set shape to Circle (Radius: {0}, Resolution: {1}, Closed: {2})

    Sets the polygon to a circle.

    Set shape to Polygon (Sides: {0}, Radius: {1}, Closed: {2})

    Sets the polygon to a regular N-sided shape.

    Set shape to Star (Points: {0}, Inner: {1}, Outer: {2}, Closed: {3})

    Sets the polygon to a star shape.

    Load SVG Path Data: {0} (Resolution: {1}, Scale: {2})

    Replaces the polygon's geometry by tracing an SVG 'd' string (curves, arcs, lines).

Math & Operations

  • Actions

    Scale polygon by (X: {0}, Y: {1})

    Multiplies the local coordinates of all points to scale the shape.

    Expand shape by {0} pixels

    Offsets the entire polygon geometry outward (positive) or inward (negative).

    Optimize shape with {0} pixel tolerance

    Removes redundant vertices to drastically improve performance.

    Smooth shape (Iterations: {0}, Closed: {1})

    Smooth the polygon points.

Styling & Patterns

  • Actions

    Set fill enabled: {0}

    Enable or disable the rendering of the inner fill.

    Set fill color to {0}

    Set the polygon fill color.

    Set border thickness to {0}

    Set the uniform thickness of the polygon border.

    Set border color to {0}

    Set the border color (hex or rgba).

    Set border join type to {0}

    Set the style of the line joints.

    Add fill {0} from UID {1} (Anim: {2}, Frame: {3}), Mode: {4}, Offset: ({5}, {6}), Scale: {7}, Angle: {8}

    Applies a sprite's texture to the inside of the polygon.

    Add border {0} from UID {1} (Anim: {2}, Frame: {3}), Mode: {4}, Offset: ({5}, {6}), Scale: {7}, Angle: {8}

    Applies a sprite's texture to the outer border of the polygon.

    Delete image {0}

    Removes a specific image layer by its name.

    Clear all fill and border images

    Removes all stacked textures from the shape.

    Add fill pattern {0} (Color: {1}, Scale: {2}, Angle: {3}, Thickness: {4}, Offset: ({5}, {6}))

    Applies a geometric vector pattern over the fill color and textures.

    Add border pattern {0} (Color: {1}, Scale: {2}, Angle: {3}, Thickness: {4}, Offset: ({5}, {6}))

    Applies a geometric vector pattern over the border color and textures.

    Clear all patterns

    Removes all applied vector patterns.

Interaction & Drag

  • Actions

    Grab at ({0}, {1})

    Locks the polygon to the cursor offset for dragging.

    Release drag

    Stops dragging the polygon.

  • Conditions

    Is dragged

    True if the polygon is currently grabbed.

  • Expressions

    DragOffsetX

    Get the X offset grabbed by the mouse.

    DragOffsetY

    Get the Y offset grabbed by the mouse.

Geometry & Points

  • Actions

    Set point {0} to layout ({1}, {2})

    Set a point using layout coordinates.

    Set point {0} to angle {1}, distance {2} from last point

    Set a point using polar coordinates relative to the previous point.

    Set point {0} to local ({1}, {2})

    Set a point using coordinates relative to the object's origin.

    Add point {0} at ({1}, {2}) mode: {3} before index {4}

    Insert a new point before a specific index.

    Add point {0} at ({1}, {2}) mode: {3} before point {4}

    Insert a new point before a specific named point.

    Delete point at index {0}

    Remove a point by its index.

    Delete point {0}

    Remove a point by its name.

    Set origin to ({0}, {1})

    Set the object's origin point.

    Delete segment {0}

    Deletes a specific path/island from the polygon (0 is the main shape).

    Load segment from JSON {0}

    Overwrites this polygon with geometry and styling from a segment JSON string.

  • Conditions

    Is ({0}, {1}) inside fill area

    Check if layout coordinates are inside the shape's fill.

    Is ({0}, {1}) inside border area

    Check if layout coordinates are touching the border geometry.

    Is point {0} overlapping {1}

    Check if a specific point's world coordinates overlap a given object.

  • Expressions

    Area

    Gets the total area of the polygon (subtracting holes).

    SegmentCount

    Get the total number of segments/islands in this polygon.

    GetSegmentAsJSON

    Get a specific segment's geometry and styling as a JSON string.

    PointWorldX

    Get the world X coordinate of a point by name.

    PointWorldY

    Get the world Y coordinate of a point by name.

    PointLocalX

    Get the local X coordinate of a point by name.

    PointLocalY

    Get the local Y coordinate of a point by name.

    ClosestPointName

    Get the name of the point closest to a layout X, Y coordinate.

    PointCount

    Get the total number of points in the polygon.

    SegmentPointCount

    Get the number of points in a specific segment/hole.

    PathCount

    Get the number of paths/contours (1 main boundary + holes).

    PointName

    Get the name of a point by its loop index.

    POIX

    Get the Pole of Inaccessibility (Visual Center) World X.

    POIY

    Get the Pole of Inaccessibility (Visual Center) World Y.

    OriginX

    Get the custom Origin X pixel offset.

    OriginY

    Get the custom Origin Y pixel offset.