Skip to content

Artisan Grasshopper

Utils

13 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

Halo Channel Profile by Name

Gets a halo channel profile Asset by name (SOFT_DOOM, DOMMED_RECTANGLE, FLAT_ROUNDED_CORNERS)

Nickname: HaloChProfile · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDefaultDescription
Profile NameNameTextitemSOFT_DOOMProfile name: SOFT_DOOM, DOMMED_RECTANGLE, FLAT_ROUNDED_CORNERS

Outputs

NameNicknameTypeAccessDescription
AssetAGenericitemProfile Asset

SKU Combiner

Combine geometric SKU list with material/gem options into all possible combinations.

Nickname: SKU Combiner · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDefaultDescription
EnabledEnabledBooleanitemfalseEnable saving JSON to disk
PrefixPrefixTextitemStyle identifier prefix (e.g. RIN001)
Path (optional)PathTextitemFolder path where the JSON file will be saved
SKU GeometricSKU's GeometricTextlistGeometric SKU list
Geometry Version (optional)VersionIntegeritem1Geometry version number
Metal 01M1TextlistLines: value,sku,name
Metal 02M2TextlistLines: value,sku,name
Metal 03M3TextlistLines: value,sku,name
Gem 01G1TextlistLines: value,sku,name
Gem 02G2TextlistLines: value,sku,name
Gem 03G3TextlistLines: value,sku,name

Outputs

NameNicknameTypeAccessDescription
SKUSKUTextlistCombinatorial SKUs
MaxMaxIntegeritemTotal number of SKUs generated
JSONJSONTextitemJSON array with all SKU combinations
Exported PathExportedTextitemPath of the exported JSON file, or empty if not exported

Selector

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

Nickname: Selector · Tab: Artisan › Utils

Inputs

NameNicknameTypeAccessDefaultDescription
typeTypeTextitemSelector type
nameNameTextitemThis is the name group on the configurator
ui_indexUI PositionIntegeritem-1Position in the UI
page_indexPage IndexIntegeritem0Page index
PanelPanelTextlistPanel 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)

Resolve GH File Name

Resolve the current Grasshopper definition file name. If input is null/empty, returns the .gh definition file name.

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

Inputs

NameNicknameTypeAccessDescription
Custom Name (optional)NameTextitemCustom file name. If empty, use Grasshopper definition file name.

Outputs

NameNicknameTypeAccessDescription
Resolved NameNameTextitemFinal file name

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