This shows you the differences between two versions of the page.
labs:explicithistory:volatiledatainheritance [2016/03/23] |
labs:explicithistory:volatiledatainheritance [2020/08/14] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Grasshopper Volatile Data Inheritance ====== | ||
+ | |||
+ | | {{: | ||
+ | | [[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | > **Summary: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== Data inheritance===== | ||
+ | |||
+ | Data is stored in parameters (either in Volatile or [[labs: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== Connection management===== | ||
+ | |||
+ | Since parameters are in charge of their own data sources, you can access these settings through the parameter in question. Let's assume we have a small definition containing three components and two parameters: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | At this stage, all the objects are unconnected and we need to start hooking them up. It doesn' | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Once the mouse (with the Left Button still firmly pressed) hovers over a potential target parameter, the wire will attach and become solid. This is not a permanent connection until you release the mouse button: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | We can do the same for the //Y// parameter of the PtGrid component and the //A// and //B// parameters of the Line component: Click+Drag+Release... | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | We can make connections both ways. But be careful, by default a new connection will erase existing connections. Since we assumed that you will most often only use single connections, | ||
+ | |||
+ | \\ | ||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | If the **ADD** cursor is active when you release the mouse button over a source parameter, that parameter is added to the source list. If you specify a source parameter which is already defined as a source, nothing will happen. You cannot inherit from the same source more than once. | ||
+ | |||
+ | By the same token, if you hold down the **Control REM** cursor it will become visible, and the targeted source is removed from the source list. If the target isn't referenced, nothing will happen. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | |||
+ | You can also disconnect (but not connect) sources through the parameter menu: | ||
+ | |||
+ | |||
+ | | {{: | ||