Dynamo Dictionaries - Part 2

In today's post, Chris Woodward follows Part 1 of our mini-series on Dictionaries in Dynamo to show how a script using Dictionaries can easily be added onto or refactored. If you missed Part 1 and have not yet used Dictionaries in Dynamo, it might be worthwhile going back to it in order to get a quick primer on how they work.


Dynamo Dictionaries
Dynamo Dictionaries

With this workflow, we are able to pass in a list of Dictionaries and a series of inputs from sliders that the user sets at the beginning of the script as a single input node, modify those values based on a “program” value from the dictionary, then set those values back to the list of dictionaries at the end. It is a simple, encapsulated logic flow that does not require the management of a large number of lists throughout the script.

Dynamo Dictionaries
Dynamo Dictionaries

A similar logic is used by this grouping. We are easily able to move this portion of the script to another location because of the single input and single output. The simplicities of the input and output mean that we do not need to spend time figuring out how to rearrange lists and connections. Instead, we can just plug and play with the rest of the script because we are only ever inputting and outputting lists of dictionaries.


Download Data Set

About the Author


Chris Woodward

Design Technologist As a design technologist, Chris combines a true fascination with both design and technology to streamline design processes and construct computational design solutions. His interest in coding can be traced back to video games mods. A more rigorous exploration started as an M.Arch Student at the University of Illinois Champaign-Urbana where he dug deep into Rhino and Grasshopper. Then, while working as an architectural designer, Chris brought this technology interest into world BIM with Revit and Dynamo. Along the way, Chris has learned a myriad of programming languages such as Python, JavaScript and C# allowing him further access to custom solutions. Not one to get too caught up in just one thing, Chris supplements has supplemented his passion in design technology with a number of hobbies and interests including mechanical keyboards, urban design, web design, and a budding interest in fountain pens. Chris can also often also be found outdoors on long-distance run or hitting the tennis or basketball courts.




Related Posts

See All

What Can We Help You With?

© 2020 Evolve Lab LLC Trademark and Copyright, all rights reserved