# Define that a default value = node inside a custom node

**URL:** https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508
**Category:** Lists-Logic
**Tags:** dynamo
**Created:** [May 11, 2020, 6:42pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508 "2020-05-11T18:42:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![luupieper](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/luupieper/32/86180_2.png) [@luupieper](https://forum.dynamobim.com/u/luupieper)
#### Post date: [May 11, 2020, 6:42pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508/1 "2020-05-11T18:42:21Z")

</div>

Hello guys,  
I’m starting to explore and try to build some custom nodes. But I have some doubts …

1. It is possible to define that a default value = node (either OOTB or custom one)
2. How do I call the nodes I made in the Script design of a Code block? tried in a few ways, but failed: /

Grateful for any answers,

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/babfb78c306d6bfa3efd04a4ed07898e3b0e6824.png)

---

<div class="post-metadata">

### Author: ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)
#### Post date: [May 11, 2020, 8:19pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508/2 "2020-05-11T20:19:54Z")

</div>

You basically have it, but you can’t call a node like that. I don’t know if you can set an empty list as a default input. You might have to set it to a null value and use Object.IsNull.

---

<div class="post-metadata">

### Author: ![luupieper](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/luupieper/32/86180_2.png) [@luupieper](https://forum.dynamobim.com/u/luupieper)
#### Post date: [May 12, 2020, 1:43pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508/3 "2020-05-12T13:43:29Z")

</div>

Thank you very much @Nick_Boyts! it works! Of course, the description outside of the node is “null” for the input, but that’s okay 🙂 .  
Now I just need to find out how I can start calling this node through the Script design: P

---

<div class="post-metadata">

### Author: ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)
#### Post date: [May 12, 2020, 2:32pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508/4 "2020-05-12T14:32:15Z")

</div>

You can’t call custom nodes with Design Script if that’s what you’re after. You would have to define a variable for the views and use GetAll as the input. I believe that’s the closest you can get.

---

<div class="post-metadata">

### Author: ![luupieper](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/luupieper/32/86180_2.png) [@luupieper](https://forum.dynamobim.com/u/luupieper)
#### Post date: [May 12, 2020, 2:36pm UTC](https://forum.dynamobim.com/t/define-that-a-default-value-node-inside-a-custom-node/50508/5 "2020-05-12T14:36:36Z")

</div>

got it :/, Ok! Thanks a lot!
