wolf-community-scripts / scripts /Akshay_Khaneja_20250614_194959_Contribution_GH2JSON_20250614_194959.json
WolfParametric's picture
Grasshopper script export from Akshay Khaneja
db0f8b7 verified
{
"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 a two point attractor script on a hexgonal grid ; inputs: Two points; outputs: attracted Hexagonal gried ",
"output": {
"components": [
{
"id": 1,
"type": "Number Slider",
"objectType": "Parameter",
"guid": "57da07bd-ecab-415d-9d86-af36d7073abc",
"params": {
"Value": 1
},
"position": {
"x": 0,
"y": 0
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Number Slider",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "SliderValue",
"value": 1
},
"additionalSettings": {
"IsExpression": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 2,
"type": "Number Slider",
"objectType": "Parameter",
"guid": "57da07bd-ecab-415d-9d86-af36d7073abc",
"params": {
"Value": 36
},
"position": {
"x": 0,
"y": 30.333344
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Number Slider",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "SliderValue",
"value": 36
},
"additionalSettings": {
"IsExpression": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 3,
"type": "Number Slider",
"objectType": "Parameter",
"guid": "57da07bd-ecab-415d-9d86-af36d7073abc",
"params": {
"Value": 37
},
"position": {
"x": 0,
"y": 60.666687
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Number Slider",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "SliderValue",
"value": 37
},
"additionalSettings": {
"IsExpression": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 4,
"type": "Number Slider",
"objectType": "Parameter",
"guid": "57da07bd-ecab-415d-9d86-af36d7073abc",
"params": {
"Value": 28
},
"position": {
"x": 2,
"y": 177
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Number Slider",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "SliderValue",
"value": 28
},
"additionalSettings": {
"IsExpression": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 5,
"type": "Point",
"objectType": "Parameter",
"guid": "fbac3e32-f100-4292-8692-77240a42fd1a",
"params": {},
"position": {
"x": 25,
"y": 102.00003
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Point",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "PointValues",
"value": {
"X": 12.788929697752966,
"Y": 49.35696526019666,
"Z": 0
}
},
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal"
}
}
],
"componentState": null
},
{
"id": 6,
"type": "Point",
"objectType": "Parameter",
"guid": "fbac3e32-f100-4292-8692-77240a42fd1a",
"params": {},
"position": {
"x": 25,
"y": 149
},
"inputSettings": [],
"outputSettings": [
{
"parameterName": "Point",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": {
"dataType": "PointValues",
"value": {
"X": 33.00384048708458,
"Y": 8.885759517122082,
"Z": 0
}
},
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal"
}
}
],
"componentState": null
},
{
"id": 7,
"type": "Hexagonal",
"objectType": "Component",
"guid": "125dc122-8544-4617-945e-bb9a0c101c50",
"params": {},
"position": {
"x": 318,
"y": 31
},
"inputSettings": [
{
"parameterName": "Plane",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
},
{
"parameterName": "Size",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "Extent X",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "Extent Y",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
}
],
"outputSettings": [
{
"parameterName": "Cells",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Reparameterize": false,
"Hidden": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
},
{
"parameterName": "Points",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": true,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal"
}
}
],
"componentState": null
},
{
"id": 8,
"type": "Distance",
"objectType": "Component",
"guid": "93b8e93d-f932-402c-b435-84be04d87666",
"params": {},
"position": {
"x": 434,
"y": 91
},
"inputSettings": [
{
"parameterName": "Point A",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
},
{
"parameterName": "Point B",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
}
],
"outputSettings": [
{
"parameterName": "Distance",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 9,
"type": "Distance",
"objectType": "Component",
"guid": "93b8e93d-f932-402c-b435-84be04d87666",
"params": {},
"position": {
"x": 434,
"y": 138
},
"inputSettings": [
{
"parameterName": "Point A",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
},
{
"parameterName": "Point B",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
}
],
"outputSettings": [
{
"parameterName": "Distance",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 10,
"type": "Minimum",
"objectType": "Component",
"guid": "57308b30-772d-4919-ac67-e86c18f3a996",
"params": {},
"position": {
"x": 542,
"y": 91
},
"inputSettings": [
{
"parameterName": "A",
"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": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "B",
"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": "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": 11,
"type": "Division",
"objectType": "Component",
"guid": "9c85271f-89fa-4e9f-9f4a-d75802120ccc",
"params": {},
"position": {
"x": 650,
"y": 91
},
"inputSettings": [
{
"parameterName": "A",
"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": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "B",
"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": "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": 12,
"type": "Scale",
"objectType": "Component",
"guid": "4d2a06bd-4b0f-4c65-9ee0-4220e4c01703",
"params": {},
"position": {
"x": 772,
"y": 24
},
"inputSettings": [
{
"parameterName": "Geometry",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": true,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "Center",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
},
{
"parameterName": "Factor",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
}
],
"outputSettings": [
{
"parameterName": "Geometry",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
},
{
"parameterName": "Transform",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 13,
"type": "Pi",
"objectType": "Component",
"guid": "0d2ccfb3-9d41-4759-9452-da6a522c3eaa",
"params": {},
"position": {
"x": 895,
"y": 27
},
"inputSettings": [
{
"parameterName": "Factor",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
}
],
"outputSettings": [
{
"parameterName": "Output",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
},
{
"id": 14,
"type": "Rotate",
"objectType": "Component",
"guid": "b7798b74-037e-4f0c-8ac7-dc1043d093e0",
"params": {},
"position": {
"x": 979,
"y": 27
},
"inputSettings": [
{
"parameterName": "Geometry",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": true,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "Angle",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"UseDegrees": false,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal",
"Locked": false
}
},
{
"parameterName": "Plane",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"Locked": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "IsNotPrincipal"
}
}
],
"outputSettings": [
{
"parameterName": "Geometry",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Hidden": false,
"IsPreviewCapable": true,
"IsBakeCapable": true,
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
},
{
"parameterName": "Transform",
"dataMapping": "None",
"isReparameterized": false,
"hasExpression": false,
"expressionContent": null,
"persistentData": null,
"additionalSettings": {
"Optional": false,
"Reverse": false,
"Simplify": false,
"IsPrincipal": "CannotBePrincipal",
"Locked": false
}
}
],
"componentState": null
}
],
"connections": [
{
"from": {
"id": 1,
"output": "Number Slider"
},
"to": {
"id": 7,
"input": "Size"
}
},
{
"from": {
"id": 2,
"output": "Number Slider"
},
"to": {
"id": 7,
"input": "Extent X"
}
},
{
"from": {
"id": 3,
"output": "Number Slider"
},
"to": {
"id": 7,
"input": "Extent Y"
}
},
{
"from": {
"id": 5,
"output": "Point"
},
"to": {
"id": 8,
"input": "Point B"
}
},
{
"from": {
"id": 8,
"output": "Distance"
},
"to": {
"id": 10,
"input": "A"
}
},
{
"from": {
"id": 11,
"output": "Result"
},
"to": {
"id": 13,
"input": "Factor"
}
},
{
"from": {
"id": 11,
"output": "Result"
},
"to": {
"id": 12,
"input": "Factor"
}
},
{
"from": {
"id": 6,
"output": "Point"
},
"to": {
"id": 9,
"input": "Point B"
}
},
{
"from": {
"id": 9,
"output": "Distance"
},
"to": {
"id": 10,
"input": "B"
}
},
{
"from": {
"id": 10,
"output": "Result"
},
"to": {
"id": 11,
"input": "A"
}
},
{
"from": {
"id": 13,
"output": "Output"
},
"to": {
"id": 14,
"input": "Angle"
}
},
{
"from": {
"id": 7,
"output": "Cells"
},
"to": {
"id": 12,
"input": "Geometry"
}
},
{
"from": {
"id": 7,
"output": "Points"
},
"to": {
"id": 8,
"input": "Point A"
}
},
{
"from": {
"id": 7,
"output": "Points"
},
"to": {
"id": 9,
"input": "Point A"
}
},
{
"from": {
"id": 7,
"output": "Points"
},
"to": {
"id": 14,
"input": "Plane"
}
},
{
"from": {
"id": 7,
"output": "Points"
},
"to": {
"id": 12,
"input": "Center"
}
},
{
"from": {
"id": 12,
"output": "Geometry"
},
"to": {
"id": 14,
"input": "Geometry"
}
},
{
"from": {
"id": 4,
"output": "Number Slider"
},
"to": {
"id": 11,
"input": "B"
}
}
]
}
}