Grasshopper Docs

Community documentation for Grasshopper add-ons & plugins

01 | Input
02 | Output
03 | Quantity
04 | Data Organization
05 | Flow

Set the principle value of an associative array. An assoc will behave like its principal value if the processing component doesn't support associative array.
By default, an assoc will take the first item as its principle value, unless the first item is a String/Text.
If unset and the first item is a String/Text, an assoc will not have a principle value. See example for more information.

Inputs

NameIDDescriptionType
AssocAAssociative arrayGoo
IndexIIndex as the new principle value. You must provide a name or an index.Integer
NameNNamed value as the new principle value. You must provide a name or an index.String

Outputs

NameIDDescriptionType
AssocAAssociative arrayGoo

Site design © Robin Rodricks.   Co-created by Andrew Heumann.   Pancake and associated data © 2020 Keyu Gan.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service