Home/ Reference/ Curve & Node

shape.Curve.Nodes.Count

Total node count for the shape. When you're checking node reduction this is the number that matters — more nodes means a bigger file and a cutter that's more likely

Signature

shape.Curve.Nodes.Count

Notes

Total node count for the shape. When you're checking node reduction this is the number that matters — more nodes means a bigger file and a cutter that's more likely to choke.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)
if shape.Type == 3:
    n = shape.Curve.Nodes.Count
    print("Nodes: ", n)
    if n > 800:
        print("That is a lot of nodes; thin it with the node tool before output")

About this section: Curve & Node

Curve & Node — subpaths and nodes.

Other entries in this section