Skip to content

Artisan Grasshopper

Utils

12 components in Artisan › Utils.

Dictionary Query

Retrieve a value from a Dictionary using a key

Nickname: Dict Query · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDescription
DictionaryDictGenericitemDictionary to search
Key (optional)KeyTextitemKey to look for

Outputs

NameNicknameTypeAccessDescription
ValueValueGenericitemValue associated with the key
KeysKeysTextlistAll available keys in the Dictionary

JSON Panel

Displays JSON on the canvas (pretty-printed, syntax coloured, resizable, scrollable) and outputs the parsed value. Source accepts a .json file path, JSON text, a Dictionary or any object. Double-click the panel to open it in a window.

Nickname: JSON · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDescription
SourceSGenericitemJSON source: a .json file path, JSON text, a Dictionary or any object.
Query (optional)QTextitemOptional JSONPath query, e.g. $.gems[0].size or gems[*].name

Outputs

NameNicknameTypeAccessDescription
JSONJTextitemPretty-printed JSON text (after the query, if any).
ValueVGenericlistParsed value: a Dictionary for objects (feeds Dictionary Query and the Artisan readers), one item per element for arrays, or the primitive itself.

Resolve GH File Name

Name and folder of the current Grasshopper definition file.

Nickname: GHFileName · Tab: Artisan › Utils

Inputs

This component has no inputs.

Outputs

NameNicknameTypeAccessDescription
NameNameTextitemGrasshopper definition file name, without extension (Untitled when not saved)
FolderFolderTextitemFolder of the Grasshopper definition (empty when not saved)

Selector

Create a Selector object from parameters and a panel of items (value,sku,name).

Nickname: Selector · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDefaultDescription
typeTypeTextitem—Selector type
nameNameTextitem—This is the name group on the configurator
ui_indexUI PositionIntegeritem-1Position in the UI
page_indexPage IndexIntegeritem0Page index
PanelPanelTextlist—Panel with lines: value,sku,name

Outputs

NameNicknameTypeAccessDescription
SelectorSelGenericitemSelector object

Selector Hub

Combine multiple Selectors into one JSON output.

Nickname: Selector Hub · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDescription
Selector 1S1GenericitemSelector object

Outputs

NameNicknameTypeAccessDescription
JSONJSONTextitemCombined Selectors JSON

Selector Types

Predefined list of selector types.

Nickname: Selector Types · Tab: Artisan › Utils · Value list — a dropdown you pick from, with no inputs

Values

LabelValue
Gem ShapeGEM_SHAPE
Gem SizeGEM_SIZE_CT
Ring SizeRING_SIZE
Metal 1METAL_1
Metal 2METAL_2
Metal 3METAL_3
Gem Compound 1GEM_1
Gem Compound 2GEM_2
Gem Compound 3GEM_3

Counter

Counts ticks using a timer-like behaviour

Nickname: Counter · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

NameNicknameTypeAccessDefaultDescription
RunRunBooleanitemfalseStart or stop the timer
ResetResetBooleanitemfalseReset the counter
MaxMaxIntegeritem0Maximum count before stopping (0 = no limit)
IntervalIIntegeritem1000Milliseconds between ticks
IncrementIncrementBooleanitemfalseConnect a button: each press increments the counter by one

Outputs

NameNicknameTypeAccessDescription
CountCountIntegeritemCurrent tick count

GH Path

Resolve export folder path. If input is null/empty, returns the .gh definition folder.

Nickname: GH Path · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

NameNicknameTypeAccessDescription
Custom Path (optional)PathTextitemCustom export path. If empty, use Grasshopper definition folder.

Outputs

NameNicknameTypeAccessDescription
Resolved PathPathTextitemFinal export path

Plane Translate

Translates a plane along its local axes

Nickname: PlnTrans · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

NameNicknameTypeAccessDefaultDescription
PlanePPlaneitemPlane.WorldXYBase plane to move
XXNumberitem0.0Translation along the plane’s X axis
YYNumberitem0.0Translation along the plane’s Y axis
ZZNumberitem0.0Translation along the plane’s Z axis

Outputs

NameNicknameTypeAccessDescription
PlanePPlaneitemTranslated plane

Progress Bar

Displays progress as a percentage

Nickname: Progress · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

NameNicknameTypeAccessDefaultDescription
CurrentCurrentIntegeritem0Current index (0-based)
MaxMaxIntegeritem100Maximum index

Outputs

NameNicknameTypeAccessDescription
Percentage%NumberitemProgress percentage (0-100)

RhinoArtisan Settings

Control global settings for RhinoArtisan plugin

Nickname: Settings · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

This component has no inputs.

Outputs

NameNicknameTypeAccessDescription
License TypeLicenseTextitemCurrent license type

String In List

Checks if a string exists in a list of strings

Nickname: StrInList · Tab: Artisan › Utils · In the tab’s dropdown, not on the ribbon face

Inputs

NameNicknameTypeAccessDescription
Text (optional)TTextitemText to search
List (optional)LTextlistList of strings

Outputs

NameNicknameTypeAccessDescription
ExistsExistsBooleanitemTrue if text exists in list