Skip to content

Scripting API

Advanced cathedral

from ArtisanPlugin.Scripting import AdvancedCathedralApi as advcathedral

Like the cathedral, but the band’s cross-section is defined by editable stations along the arm instead of one fixed profile - each station sets its own width, height and profile asset.

Create

No Create yet. Run ArtisanAdvancedCathedralShank in the UI once, then script every variant from the handle.

Edit

The IAdvancedCathedral handle has three sections; each setter regenerates the shank in place, re-baking gems, prongs and cutters:

SectionWhat it edits
ShankThe station list (replace all, or edit one), shared profile, arm height/opening, tip inclination and rounding, tangent point, and the whole bridge
GemsThe pave row - the same section the classic cathedral uses
GemGradientHow stone size and prongs vary along the run: gradient points, start/middle/end sizes, prong growth and spacing
from ArtisanPlugin.Scripting import AdvancedCathedralApi as advcathedral, Transaction

shank = advcathedral.Selected()[0]
with Transaction.Begin("Wider arm tip"):
    shank.Shank.SetStation(0, position = 0.0, width = 2.0, height = 1.4)
    shank.GemGradient.SetGemSizes(1.2, 2.0, 1.8)

Queries

All(), Find(id), Count(), Selected(), ByLayer(name).