# Creating a Grasshopper "Masterfile"

**URL:** <https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369>\
**Category:** Grasshopper\
**Tags:** database, reference, components, linked-file, organisation\
**Created:** [August 11, 2024, 7:35pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369 "2024-08-11T19:35:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 11, 2024, 7:35pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/1 "2024-08-11T19:35:59Z")

</div>

Hi,  
does someone know if it is possible to create something like a gh-“Masterfile” which is able to be linkt multiple times in a new gh canvas? So that i can let some Data from a dataset run through the same script without switching between the selected data. As an outcome there should be a variaty of elements creted by the same script but coming from different inputs. Like if you could build up an gh-file within a component abeling to add input and get output data.

Maybe the is a really easy way but i am just sitting for too long in front of my canvas so to not be able to think in the proper direction °°

Thanks for any help in advance.

---

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 12, 2024, 9:04am UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/2 "2024-08-12T09:04:47Z")

</div>

@DavidRutten maybe this is a call for you? Or maybe you know someone who could answer me this question? 🙂

---

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [August 12, 2024, 9:09am UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/3 "2024-08-12T09:09:27Z")

</div>

> [@manuel.rosenauer](#):
>
> Like if you could build up an gh-file within a component abeling to add input and get output data.

Are you aware of the native `Data Input` and `Data Output` components? Sounds like they might be relevant to what you’re trying to achieve:

 ![2024-08-12 11_07_59-Grasshopper - unnamed](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/7/4/774a97b043df8f974c92ddf7df7e25084b64b3cc.png)

---

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 12, 2024, 3:35pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/4 "2024-08-12T15:35:09Z")

</div>

Hi Anders,

yes i am aware of those but i am looking for an alternative which can access the gh script multiple times at the same time. So that different data (generated within the same canvas) can run through the same script without switching between the input data. Like the script would be a component i use several times…

Do you know what i mean?

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [August 12, 2024, 3:48pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/5 "2024-08-12T15:48:38Z")

</div>

Can you put together a small example?

A file where the data is created and another file where you want the data.

---

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 12, 2024, 3:50pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/6 "2024-08-12T15:50:24Z")

</div>

Of course Martin,

give me some minutes…

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [August 12, 2024, 3:57pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/7 "2024-08-12T15:57:57Z")

</div>

> [@manuel.rosenauer](#):
>
> Maybe […] i am just sitting for too long in front of my canvas so to not be able to think in the proper direction

Yes. Why must it be a separate GH file? Have you considered **[Hops](https://developer.rhino3d.com/guides/compute/hops-component/)**?

---

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 12, 2024, 4:05pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/8 "2024-08-12T16:05:20Z")

</div>

![Input](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/8/4/a84f4d234d7d40013bbbea79742147a128dd52c8.png)  
 ![Output](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/9/7/d97edf2274ab4e957eba247932092fd990ed79c4.jpeg)  
 ![Overview](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/f/e/0fe7eede4b7f0c3caafa507311c6e14a1f287a25.png)

So in the overview image you see the main script within the red corner. This is the part i would have to copy +50 times because this is the number of input data i have and i wanna have the output data to be changeable. If i do have to change something within this main script i dont want to replicate that +50 times in case i just copied the script that many times. And baking the data also does not really makes sense due to the use of keeping it adaptive to changes.

Input and Output are the only things i wanna see (and edit)

---

<div class="post-metadata">

**Author:** ![manuel.rosenauer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuel.rosenauer/32/638501_2.png) [@manuel.rosenauer](https://discourse.mcneel.com/u/manuel.rosenauer)\
**Post date:** [August 12, 2024, 4:11pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/9 "2024-08-12T16:11:31Z")

</div>

Hey Joseph,  
thank you, i think this is quite what i was looking for! I will get into it and let you know if i still do have any further questions.

Thanks for saving my time a lot ^^

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [August 12, 2024, 4:31pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/10 "2024-08-12T16:31:33Z")

</div>

Huh, did not know about Hops, is it similar to Clusters but more team friendly? (share defs etc).

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [August 12, 2024, 4:42pm UTC](https://discourse.mcneel.com/t/creating-a-grasshopper-masterfile/189369/11 "2024-08-12T16:42:09Z")

</div>

> [@manuel.rosenauer](#):
>
> This is the part i would have to copy +50 times because this is the number of input data i have and i wanna have the output data to be changeable.

Sounds like data tree branches to me.
