-
0
1
1
- 633797577657780000
-
0
6
12
- true
- true
- Shaded
- bakeWithMost.ghx
- 633789623711874000
- 0
-
21
18
- 1
- 0
- 37
- dabc854d-f50e-408a-b001-d043c7de151d
- Sphere
- Sph
- e56aed31-1499-4c32-8e6b-8b1b9bad55d1
- false
- true
- longest_list
-
309.5626
198.25
66
44
-
331.5626
200.25
23
40
-
331.5626
200.25
- false
- true
- false
- B
- 4e4dca87-656c-48f4-b6fd-0f899cf8a1ba
- true
- true
- 0
- 0
- 1
-
311.5626
200.25
20
20
-
311.5626
200.25
20
20
-
311.5626
200.25
- false
- true
- false
-
0
0
0
1
0
0
0
1
0
- R
- db1af3c1-6b76-45cd-a9e8-3d0f566731dc
- true
- true
- 0
- 0
- 1
-
311.5626
220.25
20
20
-
311.5626
220.25
20
20
-
311.5626
220.25
- false
- true
- false
- 1.2
- S
- 51604866-caba-4755-b5e7-c24a12081e3f
- true
- true
- 0
- 0
- 0
- false
-
354.5626
200.25
19
40
-
354.5626
200.25
19
40
-
354.5626
200.25
- false
- true
- false
- b40f28a2-ba30-4ac2-afe5-a6ece7f985fc
- Move
- Move
- 6286f931-cebf-4e1d-b100-0eaf57d45353
- true
- true
- longest_list
-
390.9063
196.5
69
50
-
413.9063
198.5
23
46
-
413.9063
198.5
- false
- true
- false
- G
- 2d638ab5-ce7e-4832-8514-c3d8e7d6d5ac
- true
- true
- 1
- 51604866-caba-4755-b5e7-c24a12081e3f
- 0
- 0
-
392.9063
198.5
21
23
-
392.9063
198.5
21
23
-
392.9063
198.5
- false
- true
- false
- T
- 43bc5f06-5235-4b53-8459-16d293b2a31c
- true
- true
- 0
- 0
- 1
-
392.9063
221.5
21
23
-
392.9063
221.5
21
23
-
392.9063
221.5
- false
- true
- false
-
0
0
0
- G
- 26a978a1-6de4-4449-b87f-1fc04c9d9726
- true
- true
- 0
- 0
- 0
-
436.9063
198.5
21
46
-
436.9063
198.5
21
46
-
436.9063
198.5
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 86026323-9af8-4e57-a8ed-800ffcc1ae18
- true
- true
- 0
- 0
- my moved sphere
- true
- true
- 0
- false
-
255
255
255
255
-
0
0
90
255
-
718
132
150
20
-
718
132
150
20
-
718
132
- false
- true
- false
- Microsoft Sans Serif
- 10
- false
- false
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- BAKE with attributes
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
- true
- true
- 0
- 0
- false
-
23
195.0125
153
20
-
23
195.0125
153
20
-
23
195.0125
- false
- true
- false
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 1
- Receiver
- 0615c12a-4ecf-472c-8e91-540df8960201
- true
- true
- 1
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
- 0
-
807.75
271.8375
60
20
-
807.75
271.8375
60
20
-
807.75
271.8375
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 8f711a7d-05a7-457d-a80b-0620bdfb04ac
- true
- true
- 0
- 0
- bake with attributes
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
482
103
228
20
-
482
103
228
20
-
482
103
- false
- true
- false
- Courier New
- 9
- false
- false
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 6510709a-180b-4b6a-9c64-01720287b91f
- 1
-
470.75
95
566.9919
236.0945
-
470.75
95
566.9919
236.0945
-
470.75
95
- false
- true
- false
- 3
-
255
255
42
255
- 1
- 5
-
470.75
331.094484579045
-
1037.74186650897
331.094484579045
-
1037.74186650897
95
-
470.75
95
-
470.75
331.094484579045
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- All-you-can-eat bake
- 480e2b77-183d-41c6-bff1-16ed1479ba1c
- true
- true
- 0
- 0
- First toggle: bake. Don't forget to set it back when done.
CAUTION with second toggle: it deletes all materials and erases the undo and redo history. Great care has been exercised in the script not to add redundant materials, as only one name is given to each color combination. The document, though, can end up with a very long list of materials when we want to use many color variations: for example with gradients. This small component is given to fix this issue. Save, close Rhino and reopen the document after this command to make it work.
- true
- true
- 0
- false
-
0
0
0
255
-
255
204
46
255
-
23
22
210
113
-
23
22
210
113
-
23
22
- false
- true
- false
- Microsoft Sans Serif
- 10
- false
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Inserts geometry into the Rhino document, with custom attributes
//Written by Giulio Piacentino
//Version written 2009 05 29
if (activate){
A = "";
//Make new attribute to set name
MRhinoObjectAttributes att = new MRhinoObjectAttributes();
//Set object name
if(name != null && RhUtil.RhinoIsValidName(name) != 0){
att.m_name = name;
}
//Set color
if(color != null){
OnColor internalCOlor = OnColor.FromColor(color);
att.SetColorSource(IOn.object_color_source.color_from_object); //Make the color type "by object"
att.m_color = internalCOlor;
att.SetPlotColorSource(IOn.plot_color_source.plot_color_from_object); //Make the plot color type "by object"
att.m_plot_color = internalCOlor;
}
//Set layer
if(layer != null && RhUtil.RhinoIsValidName(layer) != 0){
//Get the current layer index
MRhinoLayerTable layerTable = doc.m_layer_table;
int layerIndex = layerTable.FindLayer(layer);
if(layerIndex < 0){ //This layer does not exist, we add it
//Make a new layer
OnLayer onlayer = new OnLayer();
onlayer.SetLayerName(layer);
//Add the layer to the layer table
layerIndex = layerTable.AddLayer(onlayer);
if( layerIndex > -1 ){ //We manged to add layer!
att.m_layer_index = layerIndex;
A += ("Added new layer to the document at position " + layerIndex + " named " + layer + ". ");
} else
A += ("Layer did not add. Try cleaning up your layers."); //This never happened to me.
} else //We simply add to the existing layer
att.m_layer_index = layerIndex;
}
//Set plotweight
if(pWidth > 0){
att.SetPlotWeightSource(IOn.plot_weight_source.plot_weight_from_object);
att.m_plot_weight_mm = pWidth;
}
//Set linetype
if(lineT != null){
MRhinoLinetypeTable linetypes = doc.m_linetype_table;
int linetypeIndex = linetypes.FindLinetype(lineT);
if(linetypeIndex < 0){ //This linetype does not exist, we add it
//Make a new default segmetation
RMA.OpenNURBS.Arraydouble defaultSegm = new Arraydouble(2);
defaultSegm.SetCount(2);
defaultSegm[0] = 0.5;
defaultSegm[1] = -0.5;
//Add the linetype to the linetypes table
linetypeIndex = linetypes.AddLinetype(lineT, ref defaultSegm);
if( linetypeIndex > -1 ){ //We manged to add layer!
att.SetLinetypeSource(IOn.object_linetype_source.linetype_from_object);
att.m_linetype_index = linetypeIndex;
A += ("Added new linetype to the document at position " + linetypeIndex + " named " + lineT + ". ");
} else
A += ("Linetype did not add. Try cleaning up your linetypes."); //This never happened to me.
} else { //We simply add to the existing linetypes
att.SetLinetypeSource(IOn.object_linetype_source.linetype_from_object);
att.m_linetype_index = linetypeIndex;
}
}
//Set material
if(material is Grasshopper.Kernel.Types.EH_OGLShader){
Grasshopper.Kernel.Types.EH_OGLShader shader = (Grasshopper.Kernel.Types.EH_OGLShader) material;
Grasshopper.Kernel.Types.EH_OGLShader.EH_OGLShader_Proxy proxy =
(Grasshopper.Kernel.Types.EH_OGLShader.EH_OGLShader_Proxy) shader.EmitProxy();
if(shader.m_material_name == ""){ //Make sure name is unique for each color property
shader.m_material_name = string.Format("A{0}-D{1}-E{2}-R{3},{4},{5}-S{6},{7}-T{8},{9}",
proxy.Ambient.Name,
proxy.Diffuse.Name,
proxy.Emission.Name,
proxy.Reflection.Name,
proxy.IOR,
proxy.Reflectivity,
proxy.Specular.Name,
proxy.Shine,
proxy.Transparent.Name,
proxy.Transparency
);
}
int materialIndex = doc.m_material_table.FindMaterial(shader.m_material_name);
if(materialIndex < 0){
materialIndex = doc.m_material_table.AddMaterial(shader);
if(materialIndex > -1){
A += ("Added new material at position " + materialIndex + " named \"" + shader.m_material_name + "\". ");
att.SetMaterialSource(IOn.object_material_source.material_from_object);
att.m_material_index = materialIndex;
} else
A += ("Material did not add. Try cleaning up your materials."); //This never happened to me.
} else {
//If this material exists, we do not replace it!
att.SetMaterialSource(IOn.object_material_source.material_from_object);
att.m_material_index = materialIndex;
}
}
//Set wiredensity
if(wires == -1 || wires > 0){
att.m_wire_density = wires;
}
//Bake to the right type of object
if(obj is IOnBrep){ //If a brep, a polysurface or a surface
doc.AddBrepObject((IOnBrep) obj, att);
} else if(obj is IOnMesh) //If a mesh
doc.AddMeshObject((IOnMesh) obj, att);
else if(obj is IOnLine) //If a line (not a curve)
doc.AddCurveObject(new OnLineCurve((IOnLine) obj), att);
else if(obj is IOnArc) //If an arc (not a curve)
doc.AddCurveObject(new OnArcCurve((IOnArc) obj), att);
else if(obj is IOnCircle){ //If a circle (not a curve)
OnNurbsCurve crv = new OnNurbsCurve();
((OnCircle) obj).GetNurbForm(ref crv);
doc.AddCurveObject(crv, att);
} else if(obj is IOnCurve) //If a curve
doc.AddCurveObject((IOnCurve) obj, att);
else if(obj is IOn3dPoint) //If a point
doc.AddPointObject((IOn3dPoint) obj, att);
else if(obj is IArrayOn3dPoint) //If a pointcloud (?)
doc.AddPointCloudObject((IArrayOn3dPoint) obj, att);
else if(obj is IOn3dVector) { //If a vector
att.m_object_decoration = IOn.object_decoration.end_arrowhead;
doc.AddCurveObject(new OnLineCurve(new OnLine(new On3dPoint(0, 0, 0), (new On3dPoint(0, 0, 0)) + (On3dVector) obj)), att);
} else if(obj is Grasshopper.Kernel.Types.IEH_GeometricGoo) //If other strange type of geometry, including Box and Twistedbox
((Grasshopper.Kernel.Types.IEH_GeometricGoo) obj).AddToDocument(doc, att);
else {//Otherwise dont know what to do...
A += ("bakeName does not know how to handle this type of geometry: " + obj.GetType());
return;
}
A += "Added " + obj.GetType().Name;
} else {
A = "Inactive";
}
- 0
- bakeAttributes
- 0182d89c-8420-432e-83a1-ee27bafe1b4a
- true
- true
- longest_list
-
891.7126
110.4875
105
184
-
944.7126
112.4875
23
180
-
944.7126
112.4875
- false
- true
- false
- 9
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Represents a list of generic data
- true
- false
- obj
- 8c159fa2-10d8-4199-ac1c-966b8d16a040
- true
- true
- 1
- 26a978a1-6de4-4449-b87f-1fc04c9d9726
- 0
- true
-
893.7126
112.4875
51
20
-
893.7126
112.4875
51
20
-
893.7126
112.4875
- false
- true
- false
- name
- aa183231-9f4d-402e-8ccb-303bed5865bd
- true
- true
- 1
- 86026323-9af8-4e57-a8ed-800ffcc1ae18
- 0
- string
- true
-
893.7126
132.4875
51
20
-
893.7126
132.4875
51
20
-
893.7126
132.4875
- false
- true
- false
- layer
- ba29c3f8-ecc2-4ccd-b931-1aefbead929c
- true
- true
- 1
- 3ff74833-6a18-449a-923e-86f5d332bd38
- 0
- string
- true
-
893.7126
152.4875
51
20
-
893.7126
152.4875
51
20
-
893.7126
152.4875
- false
- true
- false
- color
- e58dc903-3aba-4c23-9da1-cce0b9c0d6eb
- true
- true
- 1
- 5d2c551a-740f-4f0a-94fe-666bed3af7ae
- 0
- Color
- true
-
893.7126
172.4875
51
20
-
893.7126
172.4875
51
20
-
893.7126
172.4875
- false
- true
- false
- lineT
- 8df68a1e-9273-4af6-94e5-a7e7c76dc78e
- true
- true
- 1
- 2d656e56-451d-43aa-8f18-24ccb4512c7f
- 0
- string
- true
-
893.7126
192.4875
51
20
-
893.7126
192.4875
51
20
-
893.7126
192.4875
- false
- true
- false
- pWidth
- 94a05601-659c-4395-b625-399f65035248
- true
- true
- 1
- a994820c-02da-4d46-a95c-5f3ecce954b1
- 0
- double
- true
-
893.7126
212.4875
51
20
-
893.7126
212.4875
51
20
-
893.7126
212.4875
- false
- true
- false
- wires
- b4a3e1b7-d8bf-4e7e-8616-c579976ccc0d
- true
- true
- 1
- 35a71f5d-89b5-4207-9660-4e09eaa6cf78
- 0
- int
- true
-
893.7126
232.4875
51
20
-
893.7126
232.4875
51
20
-
893.7126
232.4875
- false
- true
- false
- material
- 8e99c829-684c-4ac3-bb0d-dd36660992e4
- true
- true
- 1
- 6784c6c0-bfa4-4907-a06f-a3d479076259
- 0
- true
-
893.7126
252.4875
51
20
-
893.7126
252.4875
51
20
-
893.7126
252.4875
- false
- true
- false
- activate
- cc6a2886-6457-4a2b-b311-782155bd8d13
- true
- true
- 1
- 0615c12a-4ecf-472c-8e91-540df8960201
- 0
- bool
- true
-
893.7126
272.4875
51
20
-
893.7126
272.4875
51
20
-
893.7126
272.4875
- false
- true
- false
- out
- 606d67c2-760d-4ee5-8280-4cf418772bf4
- true
- true
- 0
- 0
- 0
-
967.7126
112.4875
27
90
-
967.7126
112.4875
27
90
-
967.7126
112.4875
- false
- true
- false
- A
- 8d5280f6-61c5-4583-b808-81d19864ba37
- true
- true
- 0
- 0
-
967.7126
202.4875
27
90
-
967.7126
202.4875
27
90
-
967.7126
202.4875
- false
- true
- false
- 9c53bac0-ba66-40bd-8154-ce9829b9db1a
- Colour Swatch
- Swatch
- 5d2c551a-740f-4f0a-94fe-666bed3af7ae
- true
- true
- 0
- 0
-
255
0
47
255
-
532.35
162.025
89
20
-
532.35
162.025
89
20
-
532.35
162.025
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 3ff74833-6a18-449a-923e-86f5d332bd38
- true
- true
- 0
- 0
- myLayer
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
747
152
122
20
-
747
152
122
20
-
747
152
- false
- true
- false
- Courier New
- 9
- false
- false
- 2e3ab970-8545-46bb-836c-1c11e5610bce
- Integer
- Int
- 35a71f5d-89b5-4207-9660-4e09eaa6cf78
- true
- true
- 0
- 0
- 1
-
807.75
231.8125
60
20
-
807.75
231.8125
60
20
-
807.75
231.8125
- false
- true
- false
- 3
- 3e8ca6be-fda8-4aaf-b5c0-3c54c8bb7312
- Number
- Num
- a994820c-02da-4d46-a95c-5f3ecce954b1
- true
- true
- 0
- 0
- 1
-
807.75
211.8
60
20
-
807.75
211.8
60
20
-
807.75
211.8
- false
- true
- false
- 0.35
- 288cfe66-f3dc-4c9a-bb96-ef81f47fe724
- Shader
- Shader
- 6784c6c0-bfa4-4907-a06f-a3d479076259
- true
- true
- 1
- 5d2c551a-740f-4f0a-94fe-666bed3af7ae
- 0
- 1
-
807.75
251.825
60
20
-
807.75
251.825
60
20
-
807.75
251.825
- false
- true
- false
-
224
255
255
0
-
0
0
0
0
-
0
0
0
0
-
255
255
255
0
-
255
255
255
0
-
128
128
128
0
- 0
- 1
- 0
- 0
- Bello
- 00000000-0000-0000-0000-000000000000
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 3fad5edb-4ab2-47f0-9a12-6a93c0c68fc1
- true
- true
- 1
- 8d5280f6-61c5-4583-b808-81d19864ba37
- 0
- Double click to edit panel content…
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
1080
96
330
234
-
1080
96
330
234
-
1080
96
- false
- true
- false
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- Delete materials
- 0dbb19f0-70b9-469e-9d98-88ecaec4f0d5
- true
- true
- 0
- 2
- true
-
23
218.995
132
20
-
23
218.995
132
20
-
23
218.995
- false
- true
- true
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Written by Giulio Piacentino
//Version 2009 05 29
if(activate){
Print("After this component is activated, you need to save, close and reopen the document.");
doc.m_material_table.SetCurrentMaterialIndex(-1);
for(int i = (doc.m_material_table.MaterialCount() - 1); i > -1; i--){
if( doc.m_material_table.DeleteMaterial(i) ){
Print("Material at position " + i + " is deleted.");
} else {
Print("Material at position " + i + " is NOT deleted.");
}
}
doc.ClearUndoRecords();
doc.ClearRedoRecords();
} else {
Print("Inactive.");
}
- 0
- DeleteAllMaterials
- 964ab652-e1d9-4887-a02e-905a2511c689
- true
- true
- longest_list
-
124.8578
-300.9046
104
133
-
176.8578
-298.9046
23
129
-
176.8578
-298.9046
- false
- true
- false
- 1
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Represents a list of generic data
- true
- false
- activate
- 6101bd0a-31ac-4f92-aaec-537e0923a12d
- true
- true
- 1
- 4a92d040-2026-4396-9469-d1f59ef2c84e
- 0
- bool
- true
-
126.8578
-298.9046
50
129
-
126.8578
-298.9046
50
129
-
126.8578
-298.9046
- false
- true
- false
- out
- 68207113-a4d1-4014-8128-ca9e14ddccfb
- true
- true
- 0
- 0
- 0
-
199.8578
-298.9046
27
64.5
-
199.8578
-298.9046
27
64.5
-
199.8578
-298.9046
- false
- true
- false
- A
- 7783b1ef-565e-44af-b61f-bff32f0eb281
- true
- true
- 0
- 0
-
199.8578
-234.4046
27
64.5
-
199.8578
-234.4046
27
64.5
-
199.8578
-234.4046
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 400c4da9-fad7-4c85-9e43-1db34f296ccc
- true
- true
- 1
- 68207113-a4d1-4014-8128-ca9e14ddccfb
- 0
- Double click to edit panel content…
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
309
-379
256
234
-
309
-379
256
234
-
309
-379
- false
- true
- false
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 1
- Receiver
- 4a92d040-2026-4396-9469-d1f59ef2c84e
- true
- true
- 1
- 0dbb19f0-70b9-469e-9d98-88ecaec4f0d5
- 0
-
43.32018
-241.3672
60
20
-
43.32018
-241.3672
60
20
-
43.32018
-241.3672
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 2d656e56-451d-43aa-8f18-24ccb4512c7f
- true
- true
- 0
- 0
- SpecialType
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
747
192
122
20
-
747
192
122
20
-
747
192
- false
- true
- false
- Courier New
- 9
- false
- false
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 1
- Receiver
- 5bb7d35d-c310-477f-894f-aebc109e394e
- true
- true
- 1
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
- 0
-
685.8375
614.7173
60
20
-
685.8375
614.7173
60
20
-
685.8375
614.7173
- false
- true
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 37b92760-de63-42d4-b310-820d57cae4be
- true
- true
- 0
- 0
- gradient object
- true
- true
- 0
- false
-
255
255
255
255
-
0
0
90
255
-
420
479
130
21
-
420
479
130
21
-
420
479
- false
- true
- false
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 6580efd0-7518-477e-b622-ad8e773b45bf
- true
- true
- 0
- 0
- auto-naming and auto-gradient iterator with attributes and materials
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
182
429
481
20
-
182
429
481
20
-
182
429
- false
- true
- false
- Courier New
- 8
- false
- false
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 588abd19-8419-49a5-ba33-a7486374d8ad
- 1
-
177.6563
423.5078
717.2099
221.3255
-
177.6563
423.5078
717.2099
221.3255
-
177.6563
423.5078
- false
- true
- false
- 3
-
255
255
42
255
- 1
- 5
-
177.656295776367
644.833325162174
-
894.866201582217
644.833325162174
-
894.866201582217
423.5078125
-
177.656295776367
423.5078125
-
177.656295776367
644.833325162174
- 00ec9ecd-4e1d-45ba-a8fc-dff716dbd9e4
- F2
- F(x,y)
- a8af06c3-0747-4983-87d9-70ba1e961955
- true
- true
- longest_list
-
634.5502
450.9297
112
64
-
705.5502
452.9297
23
60
-
705.5502
452.9297
- false
- true
- false
- startCount
- 8a67f018-382c-4130-8542-f36a8acd8499
- true
- true
- 0
- 0
- fixName & currentNum
-
636.5502
452.9297
69
20
-
636.5502
452.9297
69
20
-
636.5502
452.9297
- false
- true
- false
- fixName
- 5e68377e-e4f1-4c0b-9b2a-db44362b887b
- true
- true
- 1
- 37b92760-de63-42d4-b310-820d57cae4be
- 0
-
636.5502
472.9297
69
20
-
636.5502
472.9297
69
20
-
636.5502
472.9297
- false
- true
- false
- currentNum
- 320bedc6-4398-43b5-986f-2f97098df5e0
- true
- true
- 1
- 58683c9f-973c-4136-8f4e-3e2e0aa1cc70
- 0
-
636.5502
492.9297
69
20
-
636.5502
492.9297
69
20
-
636.5502
492.9297
- false
- true
- false
- r
- 49edb322-d349-4122-8c18-8ae4fc93e3c0
- true
- true
- 0
- 0
-
728.5502
452.9297
16
60
-
728.5502
452.9297
16
60
-
728.5502
452.9297
- false
- true
- false
- e64c5fb1-845c-4ab1-8911-5f338516ba67
- Series
- Series
- 1f6e28d1-d19c-40f8-a899-a8383a0d79d4
- true
- true
- longest_list
-
331.5276
550.2097
66
64
-
353.5276
552.2097
23
60
-
353.5276
552.2097
- false
- true
- false
- S
- 96fc239f-6892-4703-ba93-3657d034c7ed
- true
- true
- 0
- 0
- 1
-
333.5276
552.2097
20
20
-
333.5276
552.2097
20
20
-
333.5276
552.2097
- false
- true
- false
- 1
- N
- 91dfd763-ba60-4832-a47e-ec59045bb69a
- true
- true
- 0
- 0
- 1
-
333.5276
572.2097
20
20
-
333.5276
572.2097
20
20
-
333.5276
572.2097
- false
- true
- false
- 1
- C
- 0741c42f-0fb9-4850-914a-7f8e8093e6ac
- true
- true
- 1
- ab05a439-a34a-4409-a2d8-9aae73e100a8
- 0
- 1
-
333.5276
592.2097
20
20
-
333.5276
592.2097
20
20
-
333.5276
592.2097
- false
- true
- false
- 10
- S
- 58683c9f-973c-4136-8f4e-3e2e0aa1cc70
- true
- true
- 0
- 0
- 0
-
376.5276
552.2097
19
60
-
376.5276
552.2097
19
60
-
376.5276
552.2097
- false
- true
- false
- 1817fd29-20ae-4503-b542-f0fb651e67d7
- List Length
- Lng
- ca12d769-fa03-4965-8982-55bc4999880a
- true
- true
- longest_list
-
290.2376
488.4797
70
40.00003
-
317.2376
490.4797
23
36
-
317.2376
490.4797
- false
- true
- false
- list
- bf2f7342-a819-4b17-9671-ad2a2be61bb3
- true
- true
- 1
- 1
- 6b037d4a-4ec0-4585-87de-e6002f4c29bc
- 0
-
292.2376
490.4797
25
36
-
292.2376
490.4797
25
36
-
292.2376
490.4797
- false
- true
- false
- L
- ab05a439-a34a-4409-a2d8-9aae73e100a8
- true
- true
- 0
- 0
- 0
-
340.2376
490.4797
18
36
-
340.2376
490.4797
18
36
-
340.2376
490.4797
- false
- true
- false
- ac2bc2cb-70fb-4dd5-9c78-7e1ea97fe278
- Geometry
- Geo
- 6b037d4a-4ec0-4585-87de-e6002f4c29bc
- true
- true
- 3
- b8854c23-f557-41dd-aa32-1ecc29ad7dc9
- 4a78f261-47ec-45e5-abd9-8201e1d605c6
- 34d3c180-47af-48ca-b7e4-a3365e873f0a
- 0
- 0
-
182.1563
461.8203
60
20
-
182.1563
461.8203
60
20
-
182.1563
461.8203
- false
- true
- false
- 8529dbdf-9b6f-42e9-8e1f-c7a2bde56a70
- Line
- Line
- 4a78f261-47ec-45e5-abd9-8201e1d605c6
- false
- true
- 0
- 0
- 10
-
47.06258
464.3203
60
20
-
47.06258
464.3203
60
20
-
47.06258
464.3203
- false
- true
- false
-
-3.85845821489961
12.3831083813599
0
-11.5574037559659
24.6375498627774
0
-
-1.39327263522862
13.3055299949616
0
-9.16697347002475
26.0272419135903
0
-
0.33595719509023
14.2190110811041
0
-5.92724258806589
27.390826493972
0
-
2.63771383064964
13.644637014847
0
-2.23676364762622
28.5457180379588
0
-
4.28054054621367
14.1912818298891
0
1.99505637593881
28.1848391551684
0
-
5.97259801584855
13.5908202103961
0
5.42528762533072
27.3947729673526
0
-
7.91926770819895
12.5220100939287
0
8.62766572002436
26.0750741680015
0
-
9.82385830125991
11.7921059410661
0
11.7423668810119
24.7042972574543
0
-
11.5166374235517
11.29693263304
0
14.2956336665606
23.3009168206072
0
-
12.8295319090018
11.0815786282528
0
17.1021597503953
21.6051033075019
0
- c9482db6-bea9-448d-98ff-fed6d69a8efc
- Box
- Box
- 34d3c180-47af-48ca-b7e4-a3365e873f0a
- false
- true
- 0
- 0
- 1
-
47.06258
505.8203
60
20
-
47.06258
505.8203
60
20
-
47.06258
505.8203
- false
- true
- false
-
16.2842561420415
12.7156598132243
0
1
0
0
0
1
0
-
0
2.86044666427081
-
0
4.03732499208452
-
0
2.91733748624915
- 6da9f120-3ad0-4b6e-9fe0-f8cde3a649b7
- Gradient
- Gradient
- 13364512-6ec8-4ce9-91ec-8f33dcf9b3cc
- true
- true
- longest_list
- false
- false
- 2
- false
- 0
-
255
185
0
255
-
255
185
0
255
- false
- 1
-
218
34
7
255
-
218
34
7
255
-
420.6324
550.9727
250
64
-
448.6324
555.9727
210
54
-
422.6324
552.9727
- false
- true
- false
- L0
- 9208ab97-7850-4c24-a70c-1c12618cf242
- true
- true
- 0
- 0
- 1
-
422.6324
552.9727
26
20
-
422.6324
552.9727
26
20
-
422.6324
552.9727
- false
- true
- false
- 0
- L1
- 61347300-cf99-43a7-8516-767076941c1b
- true
- true
- 1
- ab05a439-a34a-4409-a2d8-9aae73e100a8
- 0
- 1
-
422.6324
572.9727
26
20
-
422.6324
572.9727
26
20
-
422.6324
572.9727
- false
- true
- false
- 1
- t
- 44972c2a-6f3d-4fca-beba-37eee8e67ac8
- true
- true
- 1
- 58683c9f-973c-4136-8f4e-3e2e0aa1cc70
- 0
- 3
-
422.6324
592.9727
26
20
-
422.6324
592.9727
26
20
-
422.6324
592.9727
- false
- true
- false
- 0
- 0.5
- 1
- C
- 429e49e4-9cde-4a6b-a83e-008565729a91
- true
- true
- 0
- 0
- 0
-
670.6324
552.9727
0
60
-
670.6324
552.9727
0
60
-
670.6324
552.9727
- false
- true
- false
- c9482db6-bea9-448d-98ff-fed6d69a8efc
- Box
- Box
- b8854c23-f557-41dd-aa32-1ecc29ad7dc9
- false
- true
- 0
- 0
- 1
-
47.06258
422.8203
60
20
-
47.06258
422.8203
60
20
-
47.06258
422.8203
- false
- true
- false
-
-13.7423217190908
16.2606618739026
0
1
0
0
0
1
0
-
0
3.46420615537509
-
0
3.42073390299782
-
0
2.68554685533999
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- c8382881-e5fc-4bb5-9499-6cef63b2fbc0
- true
- true
- 0
- 0
- orange gradient
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
612
515
134
20
-
612
515
134
20
-
612
515
- false
- true
- false
- Courier New
- 9
- false
- false
- 288cfe66-f3dc-4c9a-bb96-ef81f47fe724
- Shader
- Shader
- 2477d015-8a2f-4403-8c31-f9ba58125cae
- true
- true
- 1
- 429e49e4-9cde-4a6b-a83e-008565729a91
- 0
- 0
-
684.4
594.3201
60
20
-
684.4
594.3201
60
20
-
684.4
594.3201
- false
- true
- false
- cec8ca1b-6024-4825-9a53-07341a203697
- Cluster
- Break cluster after reading
- 61017423-2419-4bbc-8f07-e6b4128ff445
- true
- true
- Break this cluster with the break cluser icon above, or by pressing Ctrl-U
-
23
218.995
235.3974
20
-
23
218.995
142.3974
20
-
23
218.995
- false
- true
- false
- 1
- 0dbb19f0-70b9-469e-9d98-88ecaec4f0d5
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 92c9daf1-e453-46c7-a551-bd6751a4f3a7
- true
- true
- 1
- e42bdbe0-29c6-45fc-9868-1f067e3f50f6
- 0
- Double click to edit panel content…
- true
- true
- 0
- false
-
0
0
0
255
-
255
250
90
255
-
1080
425
330
234
-
1080
425
330
234
-
1080
425
- false
- true
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Inserts geometry into the Rhino document, with custom attributes
//Written by Giulio Piacentino
//Version written 2009 05 29
if (activate){
A = "";
//Make new attribute to set name
MRhinoObjectAttributes att = new MRhinoObjectAttributes();
//Set object name
if(name != null && RhUtil.RhinoIsValidName(name) != 0){
att.m_name = name;
}
//Set color
if(color != null){
OnColor internalCOlor = OnColor.FromColor(color);
att.SetColorSource(IOn.object_color_source.color_from_object); //Make the color type "by object"
att.m_color = internalCOlor;
att.SetPlotColorSource(IOn.plot_color_source.plot_color_from_object); //Make the plot color type "by object"
att.m_plot_color = internalCOlor;
}
//Set layer
if(layer != null && RhUtil.RhinoIsValidName(layer) != 0){
//Get the current layer index
MRhinoLayerTable layerTable = doc.m_layer_table;
int layerIndex = layerTable.FindLayer(layer);
if(layerIndex < 0){ //This layer does not exist, we add it
//Make a new layer
OnLayer onlayer = new OnLayer();
onlayer.SetLayerName(layer);
//Add the layer to the layer table
layerIndex = layerTable.AddLayer(onlayer);
if( layerIndex > -1 ){ //We manged to add layer!
att.m_layer_index = layerIndex;
A += ("Added new layer to the document at position " + layerIndex + " named " + layer + ". ");
} else
A += ("Layer did not add. Try cleaning up your layers."); //This never happened to me.
} else //We simply add to the existing layer
att.m_layer_index = layerIndex;
}
//Set plotweight
if(pWidth > 0){
att.SetPlotWeightSource(IOn.plot_weight_source.plot_weight_from_object);
att.m_plot_weight_mm = pWidth;
}
//Set linetype
if(lineT != null){
MRhinoLinetypeTable linetypes = doc.m_linetype_table;
int linetypeIndex = linetypes.FindLinetype(lineT);
if(linetypeIndex < 0){ //This linetype does not exist, we add it
//Make a new default segmetation
RMA.OpenNURBS.Arraydouble defaultSegm = new Arraydouble(2);
defaultSegm.SetCount(2);
defaultSegm[0] = 0.5;
defaultSegm[1] = -0.5;
//Add the linetype to the linetypes table
linetypeIndex = linetypes.AddLinetype(lineT, ref defaultSegm);
if( linetypeIndex > -1 ){ //We manged to add layer!
att.SetLinetypeSource(IOn.object_linetype_source.linetype_from_object);
att.m_linetype_index = linetypeIndex;
A += ("Added new linetype to the document at position " + linetypeIndex + " named " + lineT + ". ");
} else
A += ("Linetype did not add. Try cleaning up your linetypes."); //This never happened to me.
} else { //We simply add to the existing linetypes
att.SetLinetypeSource(IOn.object_linetype_source.linetype_from_object);
att.m_linetype_index = linetypeIndex;
}
}
//Set material
if(material is Grasshopper.Kernel.Types.EH_OGLShader){
Grasshopper.Kernel.Types.EH_OGLShader shader = (Grasshopper.Kernel.Types.EH_OGLShader) material;
Grasshopper.Kernel.Types.EH_OGLShader.EH_OGLShader_Proxy proxy =
(Grasshopper.Kernel.Types.EH_OGLShader.EH_OGLShader_Proxy) shader.EmitProxy();
if(shader.m_material_name == ""){ //Make sure name is unique for each color property
shader.m_material_name = string.Format("A{0}-D{1}-E{2}-R{3},{4},{5}-S{6},{7}-T{8},{9}",
proxy.Ambient.Name,
proxy.Diffuse.Name,
proxy.Emission.Name,
proxy.Reflection.Name,
proxy.IOR,
proxy.Reflectivity,
proxy.Specular.Name,
proxy.Shine,
proxy.Transparent.Name,
proxy.Transparency
);
}
int materialIndex = doc.m_material_table.FindMaterial(shader.m_material_name);
if(materialIndex < 0){
materialIndex = doc.m_material_table.AddMaterial(shader);
if(materialIndex > -1){
A += ("Added new material at position " + materialIndex + " named \"" + shader.m_material_name + "\". ");
att.SetMaterialSource(IOn.object_material_source.material_from_object);
att.m_material_index = materialIndex;
} else
A += ("Material did not add. Try cleaning up your materials."); //This never happened to me.
} else {
//If this material exists, we do not replace it!
att.SetMaterialSource(IOn.object_material_source.material_from_object);
att.m_material_index = materialIndex;
}
}
//Set wiredensity
if(wires == -1 || wires > 0){
att.m_wire_density = wires;
}
//Bake to the right type of object
if(obj is IOnBrep){ //If a brep, a polysurface or a surface
doc.AddBrepObject((IOnBrep) obj, att);
} else if(obj is IOnMesh) //If a mesh
doc.AddMeshObject((IOnMesh) obj, att);
else if(obj is IOnLine) //If a line (not a curve)
doc.AddCurveObject(new OnLineCurve((IOnLine) obj), att);
else if(obj is IOnArc) //If an arc (not a curve)
doc.AddCurveObject(new OnArcCurve((IOnArc) obj), att);
else if(obj is IOnCircle){ //If a circle (not a curve)
OnNurbsCurve crv = new OnNurbsCurve();
((OnCircle) obj).GetNurbForm(ref crv);
doc.AddCurveObject(crv, att);
} else if(obj is IOnCurve) //If a curve
doc.AddCurveObject((IOnCurve) obj, att);
else if(obj is IOn3dPoint) //If a point
doc.AddPointObject((IOn3dPoint) obj, att);
else if(obj is IArrayOn3dPoint) //If a pointcloud (?)
doc.AddPointCloudObject((IArrayOn3dPoint) obj, att);
else if(obj is IOn3dVector) { //If a vector
att.m_object_decoration = IOn.object_decoration.end_arrowhead;
doc.AddCurveObject(new OnLineCurve(new OnLine(new On3dPoint(0, 0, 0), (new On3dPoint(0, 0, 0)) + (On3dVector) obj)), att);
} else if(obj is Grasshopper.Kernel.Types.IEH_GeometricGoo) //If other strange type of geometry, including Box and Twistedbox
((Grasshopper.Kernel.Types.IEH_GeometricGoo) obj).AddToDocument(doc, att);
else {//Otherwise dont know what to do...
A += ("bakeName does not know how to handle this type of geometry: " + obj.GetType());
return;
}
A += "Added " + obj.GetType().Name;
} else {
A = "Inactive";
}
- 0
- bakeAttributes
- b8b37979-193e-4251-8d84-072dcd7039ff
- true
- true
- longest_list
-
761.7126
451.7375
105
184
-
814.7126
453.7375
23
180
-
814.7126
453.7375
- false
- true
- false
- 9
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Represents a list of generic data
- true
- false
- obj
- 7ac737df-7efc-4382-b85e-7d95677767c8
- true
- true
- 1
- 6b037d4a-4ec0-4585-87de-e6002f4c29bc
- 0
- true
-
763.7126
453.7375
51
20
-
763.7126
453.7375
51
20
-
764.7126
452.7375
- false
- true
- false
- name
- dcc69f48-0c30-400c-962b-52eb923acbb6
- true
- true
- 1
- 49edb322-d349-4122-8c18-8ae4fc93e3c0
- 0
- string
- true
-
763.7126
473.7375
51
20
-
763.7126
473.7375
51
20
-
764.7126
472.7375
- false
- true
- false
- layer
- 1ec15cbb-f614-4df4-a84f-274112933da8
- true
- true
- 1
- c8382881-e5fc-4bb5-9499-6cef63b2fbc0
- 0
- string
- true
-
763.7126
493.7375
51
20
-
763.7126
493.7375
51
20
-
764.7126
492.7375
- false
- true
- false
- color
- cdfb4467-3c1e-4194-9c30-6202589a107a
- true
- true
- 1
- 429e49e4-9cde-4a6b-a83e-008565729a91
- 0
- Color
- true
-
763.7126
513.7375
51
20
-
763.7126
513.7375
51
20
-
764.7126
512.7375
- false
- true
- false
- lineT
- 82c08763-95bd-4704-8654-62524a079d4d
- true
- true
- 0
- 0
- string
- true
-
763.7126
533.7375
51
20
-
763.7126
533.7375
51
20
-
764.7126
532.7375
- false
- true
- false
- pWidth
- 06aa7af5-c838-4b84-9a26-2e0a7ab36ae9
- true
- true
- 0
- 0
- double
- true
-
763.7126
553.7375
51
20
-
763.7126
553.7375
51
20
-
764.7126
552.7375
- false
- true
- false
- wires
- a8e8a36e-ca67-4a49-8e70-2eafaae6ccb9
- true
- true
- 0
- 0
- int
- true
-
763.7126
573.7375
51
20
-
763.7126
573.7375
51
20
-
764.7126
572.7375
- false
- true
- false
- material
- b9a870ee-5156-4fe3-875d-ca2c9f752144
- true
- true
- 1
- 2477d015-8a2f-4403-8c31-f9ba58125cae
- 0
- true
-
763.7126
593.7375
51
20
-
763.7126
593.7375
51
20
-
764.7126
592.7375
- false
- true
- false
- activate
- 2abd6b83-0d49-4bd1-8354-309d4ca7dbca
- true
- true
- 1
- 5bb7d35d-c310-477f-894f-aebc109e394e
- 0
- bool
- true
-
763.7126
613.7375
51
20
-
763.7126
613.7375
51
20
-
764.7126
612.7375
- false
- true
- false
- out
- a705d397-7ee7-4518-8a44-7e5b1159254b
- true
- true
- 0
- 0
- 0
-
837.7126
453.7375
27
90
-
837.7126
453.7375
27
90
-
838.7126
452.7375
- false
- true
- false
- A
- e42bdbe0-29c6-45fc-9868-1f067e3f50f6
- true
- true
- 0
- 0
-
837.7126
543.7375
27
90
-
837.7126
543.7375
27
90
-
838.7126
542.7375
- false
- true
- false