Skip to content

Scripting API

IAdvancedBasket

Returned by AdvancedBasketApi — the advanced basket on one mother gem. Unlike the basic basket, it stores one entry per prong/rail, each with its own settings. Adds to IGemSetting:

MemberMeaning
ProngCountNumber of prongs
RailCountNumber of rails
ProngHeightFirst prong’s height, mm
ProngDiameterFirst prong’s diameter, mm
SetProngCount(prongs)Rebuild the prong set evenly spaced, cloning the first existing prong’s settings (tool defaults when empty)
SetRailCount(rails)Rebuild the rail set the same way
RailModeThe rails’ section: "ROUND", "SQUARE" or "CUSTOM" when every rail shares it, "MIXED" when they differ, "" with no rails
SetRailMode(mode)Applies to every rail
RailGemsThe stones on the rails’ outer face, between the prongs: an ICathedralGems with the rules of the rail gems of the basket. The getters report the first rail’s; every setter applies to every rail. A bent rail takes none: enabling them on it throws. For one rail alone use SetParameter("rails[1].gems.enable", "true")
SetProngDiameter(diameter)Applies to every prong, mm
SetProngHeight(height)Applies to every prong, mm