Skip to content

Python package

ra.toi_et_moi

Two stones facing each other.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.ToiEtMoiApi.

Functions

Function
create()Creates the editable Toi et Moi group.

ra.toi_et_moi.create()

ra.toi_et_moi.create(shape_a: str, carats_a: float, shape_b: str, carats_b: float, material_a=None, material_b=None, angle_a=None, angle_b=None, rotation_ya=None, rotation_yb=None, distance=None, finger_diameter=None) -> List[str]

Creates the editable Toi et Moi group. Per stone: shape (GemShape name), carats and material; placement uses the tool defaults (stone A at +14 degrees leaning +20, stone B mirrored) unless the angle/rotationY arguments say otherwise. finger_diameter 0 = the document’s finger size. Returns the ids of the two gems (the group also carries the finger reference circle).

ParameterType
shape_astrrequired
carats_afloatrequired
shape_bstrrequired
carats_bfloatrequired
material_astroptional — None = the tool default
material_bstroptional — None = the tool default
angle_afloatoptional — None = the tool default
angle_bfloatoptional — None = the tool default
rotation_yafloatoptional — None = the tool default
rotation_ybfloatoptional — None = the tool default
distancefloatoptional — None = the tool default
finger_diameterfloatoptional — None = the tool default