wolf-community-scripts / scripts /Akshay_Khaneja_20250619_151253_Contribution_GH2JSON_20250619_151253.json
| { | |
| "meta": { | |
| "version": "1.0" | |
| }, | |
| "User": { | |
| "FullName": "Akshay Khaneja", | |
| "Country": "Spain", | |
| "Email": "akshay.khaneja@gmail.com", | |
| "LinkedInId": "akshay-khaneja-09" | |
| }, | |
| "Description": "What the script does: create an example and use of Pic \u0027n\u0027 Choose component - The Pick\u0027n\u0027Choose component in Grasshopper is used to select specific items from a list based on a list of indices. It\u2019s essentially a way to \u0022pick\u0022 certain elements from a data set using a custom pattern.; inputs: panel; outputs: panel", | |
| "output": { | |
| "components": [ | |
| { | |
| "id": 1, | |
| "type": "Group", | |
| "objectType": "Unknown", | |
| "guid": "c552a431-af5b-46a9-a8a4-0fcbc27ef596", | |
| "params": {}, | |
| "position": { | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [], | |
| "componentState": null | |
| }, | |
| { | |
| "id": 2, | |
| "type": "Group", | |
| "objectType": "Unknown", | |
| "guid": "c552a431-af5b-46a9-a8a4-0fcbc27ef596", | |
| "params": {}, | |
| "position": { | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [], | |
| "componentState": null | |
| }, | |
| { | |
| "id": 3, | |
| "type": "Panel", | |
| "objectType": "Parameter", | |
| "guid": "59e0b89a-e487-49f8-bab8-b5bab16be14c", | |
| "params": { | |
| "Value": "0\r\n2\r\n1\r\n1\r\n2\r\n1" | |
| }, | |
| "position": { | |
| "x": 3818.934, | |
| "y": 2977.5479 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Panel", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": { | |
| "wrap": true, | |
| "color": { | |
| "r": 255, | |
| "g": 255, | |
| "b": 255, | |
| "a": 159 | |
| } | |
| } | |
| }, | |
| { | |
| "id": 4, | |
| "type": "Panel", | |
| "objectType": "Parameter", | |
| "guid": "59e0b89a-e487-49f8-bab8-b5bab16be14c", | |
| "params": { | |
| "Value": "A\r\nB\r\nC\r\nD\r\nE\r\nF" | |
| }, | |
| "position": { | |
| "x": 3892.6096, | |
| "y": 3070.435 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Panel", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": { | |
| "wrap": true, | |
| "color": { | |
| "r": 255, | |
| "g": 255, | |
| "b": 255, | |
| "a": 159 | |
| } | |
| } | |
| }, | |
| { | |
| "id": 5, | |
| "type": "Panel", | |
| "objectType": "Parameter", | |
| "guid": "59e0b89a-e487-49f8-bab8-b5bab16be14c", | |
| "params": { | |
| "Value": "10\r\n11\r\n12\r\n13\r\n14\r\n15" | |
| }, | |
| "position": { | |
| "x": 3956.4106, | |
| "y": 3135.2058 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Panel", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": { | |
| "wrap": true, | |
| "color": { | |
| "r": 255, | |
| "g": 255, | |
| "b": 255, | |
| "a": 159 | |
| } | |
| } | |
| }, | |
| { | |
| "id": 6, | |
| "type": "Panel", | |
| "objectType": "Parameter", | |
| "guid": "59e0b89a-e487-49f8-bab8-b5bab16be14c", | |
| "params": { | |
| "Value": "john\r\nbruce\r\ncarl\r\nmick\r\nannie\r\njane" | |
| }, | |
| "position": { | |
| "x": 4022.3445, | |
| "y": 3162.2249 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Panel", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": { | |
| "wrap": true, | |
| "color": { | |
| "r": 255, | |
| "g": 255, | |
| "b": 255, | |
| "a": 159 | |
| } | |
| } | |
| }, | |
| { | |
| "id": 7, | |
| "type": "Pick\u0027n\u0027Choose", | |
| "objectType": "Component", | |
| "guid": "03b801eb-87cd-476a-a591-257fe5d5bf0f", | |
| "params": {}, | |
| "position": { | |
| "x": 4081, | |
| "y": 3085 | |
| }, | |
| "inputSettings": [ | |
| { | |
| "parameterName": "Pattern", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "IsNotPrincipal", | |
| "Locked": false | |
| } | |
| }, | |
| { | |
| "parameterName": "Stream 0", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "UseDegrees": false, | |
| "Hidden": false, | |
| "IsPreviewCapable": true, | |
| "IsBakeCapable": false, | |
| "Optional": true, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "IsNotPrincipal", | |
| "Locked": false | |
| } | |
| }, | |
| { | |
| "parameterName": "Stream 1", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "UseDegrees": false, | |
| "Hidden": false, | |
| "IsPreviewCapable": true, | |
| "IsBakeCapable": false, | |
| "Optional": true, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "IsNotPrincipal", | |
| "Locked": false | |
| } | |
| }, | |
| { | |
| "parameterName": "Stream 2", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "UseDegrees": false, | |
| "Hidden": false, | |
| "IsPreviewCapable": true, | |
| "IsBakeCapable": false, | |
| "Optional": true, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "IsNotPrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Result", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "UseDegrees": false, | |
| "Hidden": false, | |
| "IsPreviewCapable": true, | |
| "IsBakeCapable": false, | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": null | |
| }, | |
| { | |
| "id": 8, | |
| "type": "Panel", | |
| "objectType": "Parameter", | |
| "guid": "59e0b89a-e487-49f8-bab8-b5bab16be14c", | |
| "params": { | |
| "Value": "Double click to edit panel content\u2026" | |
| }, | |
| "position": { | |
| "x": 4149.5728, | |
| "y": 3025.8638 | |
| }, | |
| "inputSettings": [], | |
| "outputSettings": [ | |
| { | |
| "parameterName": "Panel", | |
| "dataMapping": "None", | |
| "isReparameterized": false, | |
| "hasExpression": false, | |
| "expressionContent": null, | |
| "persistentData": null, | |
| "additionalSettings": { | |
| "Optional": false, | |
| "Reverse": false, | |
| "Simplify": false, | |
| "IsPrincipal": "CannotBePrincipal", | |
| "Locked": false | |
| } | |
| } | |
| ], | |
| "componentState": { | |
| "multiline": true, | |
| "wrap": true, | |
| "color": { | |
| "r": 255, | |
| "g": 255, | |
| "b": 255, | |
| "a": 159 | |
| } | |
| } | |
| } | |
| ], | |
| "connections": [ | |
| { | |
| "from": { | |
| "id": 7, | |
| "output": "Result" | |
| }, | |
| "to": { | |
| "id": 8, | |
| "input": "Panel" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "id": 3, | |
| "output": "Panel" | |
| }, | |
| "to": { | |
| "id": 7, | |
| "input": "Pattern" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "id": 4, | |
| "output": "Panel" | |
| }, | |
| "to": { | |
| "id": 7, | |
| "input": "Stream 0" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "id": 5, | |
| "output": "Panel" | |
| }, | |
| "to": { | |
| "id": 7, | |
| "input": "Stream 1" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "id": 6, | |
| "output": "Panel" | |
| }, | |
| "to": { | |
| "id": 7, | |
| "input": "Stream 2" | |
| } | |
| } | |
| ] | |
| } | |
| } |