algorithmic modeling for Rhino
I am currently running rhino 5, under 64 bit OS.
and I have been trying to run a def for 2 days with no luck.
I thought the def was way to old to work on the current version of grasshopper but until I ask for some help and I sent the def to someone who tested the def out and made it work and send it right back to me and I got the same error I realized something wasnt right.
here some images of what the def does
Flat hexagonal panels over a given surface.
I get errors with the sliders and the VB script. Original script by Luis Fraguada from LAN then Davide del Giudice/ from madeincalifornia Checked out the definition because I have almost no knowledge with scripting and he made it work and sent those images back to me and this definition fixed, wich doesnt work on my computer and here some images of the problem.
and here some images of the problem.
Tags:
It is the same error since I started to try to make this definition work. even after davide fized it.
Its got to be a bug or some kind of problem
Im pretty sure your just not putting the expression correctly. Can you put a screenshot of whats in it.
I dont think so Davide del Giudice checked out for me and he made it work.
but any ways each slider as:
'Script written By Luis E. Fraguada
'http://www.livearchitecture.net
'code@livearchitecture.net
Dim arrPt(0 To u, 0 To v) As On3dPoint
Dim cnt As Integer = 0
For i As Int32 = 0 To u
For j As Int32 = 0 To v
arrPt(i, j) = pts(cnt)
cnt = cnt + 1
Next
Next
Dim lines As New List(Of OnPolyline)()
'Point Culling
Dim ptArr As New On3dPointArray()
Dim pt_list As New List(Of On3dPoint)
For i As Int32 = 0 To u - 2 Step 2
For j As Int32 = 0 To v - 3 Step 4
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
ptArr.Append(arrPt(i + 2, j + 1).x, arrPt(i + 2, j + 1).y, arrPt(i + 2, j + 1).z)
ptArr.Append(arrPt(i + 2, j + 2).x, arrPt(i + 2, j + 2).y, arrPt(i + 2, j + 2).z)
ptArr.Append(arrPt(i + 1, j + 3).x, arrPt(i + 1, j + 3).y, arrPt(i + 1, j + 3).z)
ptArr.Append(arrPt(i, j + 2).x, arrPt(i, j + 2).y, arrPt(i, j + 2).z)
ptArr.Append(arrPt(i, j + 1).x, arrPt(i, j + 1).y, arrPt(i, j + 1).z)
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
Dim pline As New OnPolyline(ptArr)
lines.Add(pline)
Dim pt As New On3dPoint((arrPt(i + 1, j).x + arrPt(i + 1, j + 3).x) / 2, (arrPt(i + 1, j).y + arrPt(i + 1, j + 3).y) / 2, (arrPt(i + 1, j).z + arrPt(i + 1, j + 3).z) / 2)
pt_list.Add(pt)
ptArr.destroy
Next
Next
For i As Int32 = 1 To u - 2 Step 2
For j As Int32 = 2 To v - 3 Step 4
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
ptArr.Append(arrPt(i + 2, j + 1).x, arrPt(i + 2, j + 1).y, arrPt(i + 2, j + 1).z)
ptArr.Append(arrPt(i + 2, j + 2).x, arrPt(i + 2, j + 2).y, arrPt(i + 2, j + 2).z)
ptArr.Append(arrPt(i + 1, j + 3).x, arrPt(i + 1, j + 3).y, arrPt(i + 1, j + 3).z)
ptArr.Append(arrPt(i, j + 2).x, arrPt(i, j + 2).y, arrPt(i, j + 2).z)
ptArr.Append(arrPt(i, j + 1).x, arrPt(i, j + 1).y, arrPt(i, j + 1).z)
ptArr.Append(arrPt(i + 1, j).x, arrPt(i + 1, j).y, arrPt(i + 1, j).z)
Dim pline As New OnPolyline(ptArr)
lines.Add(pline)
Dim pt As New On3dPoint((arrPt(i + 1, j).x + arrPt(i + 1, j + 3).x) / 2, (arrPt(i + 1, j).y + arrPt(i + 1, j + 3).y) / 2, (arrPt(i + 1, j).z + arrPt(i + 1, j + 3).z) / 2)
pt_list.Add(pt)
ptArr.destroy
Next
Next
PolyCrv = lines 'hexagon cells
CPts = pt_list 'center pt
End Sub
As the error claims, the slider expression is using the slider name. It's supposed to use "x" now. So change HexU*2 to x*2 and your slider error should go away.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
David thats right I did change it earlier this day. and the error goes away but then nothing comes out of the script.
the definition as a note and it says clearly
"*Note: This is the number of cells in each direction. There is an expression in each of the sliders which control a multiplier which relates to the script. Do not change the expression in each slider or the slider names."
so if I change it error goes away but definition doesnt work.
Please help me out! I dont know who to ask for help anymore. no one knows
it must be something inside the script because I cant still make it work. is either that or a bug.
Michael Pryor did you make the definition work????
works just fine for me when the slider expressions are fixed to be X*2. The script is fine - did you forget to specify a surface?
See everyone!
Thats exactly what I mean for some people works and for others dont!
Michael Pryor just tested it and it doesnt work then Andrew Heumann tested it and it works! somethings is got to be not working well!
Andrew Heumann what grasshopper and rhino version are you running?
I am currently running rhino 5, under 64 bit OS.
Grasshopper 0.9.0014
rhino 5 64 bit with the same grasshopper as you. try opening the version I'm uploading here with the rhino file you originally posted.
See we already did all this with Davide del Giudice
the definition worked just fine on his computer he even sent me the definition attached to the rhino file but no luck!
It just comes NULL out of the script!
This is really strange!
must be a bug or something!
Thanks for your kind help!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by