DataShapes Dropdown UI shows null

I am trying to build a dropdown input, using the datashapes package. Please see underneath the simple script that I am using. It is not working, the list shows null.

I found somewhere that it should be fed from a list.Create node. Funnily enough, when I try to do that, I get a strange result on the List.Create node. What is going on here?

This does work, but I think its strange.

I want to be able to select a linestyle using this method. Hence I fed the linestyle names. But I cant get that to work. Any advice on how I can ?

Keys represent the user facing value that you want selected (the names) and Values represent the actual object associated with that value that you want to pass on and use (the line style). Just plug those two lists into their respective inputs and you should be golden.

That being said, there’s obviously something weird going on here. Element.Name seems to be showing values but returning a null list. Try closing Dynamo and reopening.

Yeah restarting Dynamo solved it. Thank you!

1 Like