Dictionary Nodes
Last updated
Last updated
Dynamo 2.0 exposes a variety of Dictionary nodes for our use. This includes create, action, and query nodes.
1.Dictionary.ByKeysValues
will create a dictionary with the supplied values and keys. (The number of entries will be whatever the shortest list input is)
2. Dictionary.Components
will produce the components of the input dictionary. (This is the reverse of the create node.)
3. Dictionary.RemoveKeys
will produce a new dictionary object with the input keys removed.
4. Dictionary.SetValueAtKeys
will produce a new dictionary based on the input keys and the values to replace the current value at the corresponding keys.
5. Dictionary.ValueAtKey
will return the value at the input key.
6. Dictionary.Count
will tell you how many key value pairs are in the dictionary.
7. Dictionary.Keys
will return what keys are currently stored in the dictionary.
8. Dictionary.Values
will return what values are currently stored in the dictionary.
Overall relating data with dictionaries is a magnificent alternative to the old method of working with indices and lists.