Scripting API
Two rows
from ArtisanPlugin.Scripting import TwoRowsShankApi as tworows
A classic band with a channel carved on each face, carrying two parallel rows of stones.
Create
No Create yet. Run ArtisanTwoRowsShank in the UI once, then script every variant from the handle.
Edit
The band is a full classic shank, so ITwoRowsShank exposes the classic sections plus the two-rows specifics. Each setter regenerates the shank in place, re-baking stones, prongs and cutters:
| Section | What it edits |
|---|---|
TopProfile / MidProfile / BottomProfile / ExternalProfile / Advanced | The band - the same sections as Classic |
Rail | The channel: layout (full, side angle, top angle) with its angles, width and offset, fit tolerance, rotation, rail mode (double or single), cut orientation, central wall, outer border, row spacing and end margin |
Gems | The stones on the rails - the same options as a classic gems row |
GemsEnabled / CuttersEnabled | Master toggles |
from ArtisanPlugin.Scripting import TwoRowsShankApi as tworows, Transaction
ring = tworows.Selected()[0]
with Transaction.Begin("Single wide channel, stones only on top"):
ring.Rail.SetRailMode("SINGLE")
ring.Rail.SetLayoutMode("TOP_ANGLE")
ring.Rail.SetTopAngle(90)
Queries
All(), Find(id), Count(), Selected(), ByLayer(name).