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).
| Parameter | Type | |
|---|---|---|
shape_a | str | required |
carats_a | float | required |
shape_b | str | required |
carats_b | float | required |
material_a | str | optional — None = the tool default |
material_b | str | optional — None = the tool default |
angle_a | float | optional — None = the tool default |
angle_b | float | optional — None = the tool default |
rotation_ya | float | optional — None = the tool default |
rotation_yb | float | optional — None = the tool default |
distance | float | optional — None = the tool default |
finger_diameter | float | optional — None = the tool default |