Skip to content

Python package

ra.pattern

Repeated patterns over surfaces.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.PatternApi.

Functions

Function
create()Repeats the source object in a columns x rows grid (defaults 2x3), then, when surface_id is given, flows the whole grid onto that surface (Sporph).

ra.pattern.create()

ra.pattern.create(object_id: IdLike, surface_id=None, columns=None, rows=None, x_padding=None, y_padding=None, rotation=None, z_move=None, max_thickness=None, reverse_mode=None) -> List[str]

Repeats the source object in a columns x rows grid (defaults 2x3), then, when surface_id is given, flows the whole grid onto that surface (Sporph). rotation (deg) accumulates per cell around Z; z_move lifts the source before arraying; max_thickness > 0 also rescales the source in Z to that thickness. reverse_mode mirrors the flow surface: 0 none, 1 reverse U, 2 reverse V, 3 both (-1 keeps the default). Paddings, rotation and z_move of 0 keep the saved/tool defaults (which are 0). Returns the created object ids; the source object is left untouched, exactly like the panel.

ParameterType
object_idIdLikerequired
surface_idOptional[IdLike]optional — None = the tool default
columnsintoptional — None = the tool default
rowsintoptional — None = the tool default
x_paddingfloatoptional — None = the tool default
y_paddingfloatoptional — None = the tool default
rotationfloatoptional — None = the tool default
z_movefloatoptional — None = the tool default
max_thicknessfloatoptional — None = the tool default
reverse_modeintoptional — None = the tool default