# Is there any way to set the value list contents from another list

**URL:** <https://discourse.mcneel.com/t/is-there-any-way-to-set-the-value-list-contents-from-another-list/177496>\
**Category:** Grasshopper\
**Tags:** windows, rhino7\
**Created:** [March 8, 2024, 6:35am UTC](https://discourse.mcneel.com/t/is-there-any-way-to-set-the-value-list-contents-from-another-list/177496 "2024-03-08T06:35:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/498369_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [March 8, 2024, 9:53am UTC](https://discourse.mcneel.com/t/is-there-any-way-to-set-the-value-list-contents-from-another-list/177496/4 "2024-03-08T09:53:12Z")

</div>

Here’s another option, using a python script:

> [@Setting the entries in a value list?](https://discourse.mcneel.com/t/setting-the-entries-in-a-value-list/110781/30):
>
> It’s only a bug if there are software requirements. Anywho, you can add this line to prevent the code running before it has something to work with (i.e. attempting to populate with nothing): [210108\_PopulateValueList\_01.gh](https://discourse.mcneel.com/uploads/short-url/gbV3B2sbjqp0s1eEVSmN6kbfajY.gh) (4.2 KB) And these bits to avoid the item selection error raised when populating an empty value list: [210108\_PopulateValueList\_02.gh](https://discourse.mcneel.com/uploads/short-url/tPpxigcOvhCUjQJTC7uRyZrbbEi.gh) (4.4 KB) …

---

_[View the full topic](https://discourse.mcneel.com/t/is-there-any-way-to-set-the-value-list-contents-from-another-list/177496)._
