Skip to content

Scripting API

Transform

from ArtisanPlugin.Scripting import TransformApi as transform

The operations that take geometry you already have and move, resize or reshape it. Each has its own page.

The three families

FamilyPagesWhat they do
ScalingScale by weight, Scale to dimensionsResize the whole set to hit an exact target — grams, or millimetres
PlacementCopy on objects, Move on objects, Move by normal, Mirror quad, Mirror oppositeMove or duplicate geometry relative to a surface or a plane
DeformationsBend, Twist, TaperRhino space-morphs that reshape the geometry itself

Conventions

Millimetres and degrees throughout, and mutations belong inside a Transaction for one-step undo.

Every one of these takes an object list where None or an empty list falls back to the current viewport selection — and raises when that is empty too — “Nothing selected…” on the scaling and placement methods, “Nothing to deform…” on the deformations. Explicit ids are validated individually and de-duplicated.

Where a method takes a plane, None resolves to the active viewport’s construction plane, falling back to world XY when running headless.

What each one returns

These facades hand back plain values — there are no handles and no query methods. What comes back differs by method, and so does whether your originals survive.

PageReturnsSources
Scale by weightThe scale factor applied, as a numberScaled in place, or copied with keepOriginal
Scale to dimensionsObject idsScaled in place, or copied with keepOriginal
Copy on objectsThe new copies’ idsUntouched
Move on objectsCount of objects movedMoved in place
Move by normalCount of objects movedMoved in place
Mirror quadThe new copies’ idsUntouched
Mirror oppositeThe new copy’s idUntouched
Bend · Twist · TaperThe new deformed objects’ ids — never the ids you passedDeleted, unless keepOriginal