ifferent suns in the same analysis. Perfect!
In (Image2) i made 3 panels for each of the parameters (Month, Day, Hours) each with 5 values. Now i have many suns which also makes sense 100%.
Now my question is, how to make grasshopper process the first value from each panel, then process the second value from each panel. then the third, fourth..etc. So that I have only 5 suns but all on different Dates. I tried with sets but failed. Can anyone help me?
Thanks!…
2_Remapping those heights to a 6 z values to simplify the surface
3_Getting the end point of each line to be able to interpolate a curve through each row in order to make a loft once I have all the curves by rows.
My problem is that, I am selecting by a sublist component each row, but I have to do sooo many sublists with domains that go from 0 to 100, then the next sublist from 101 to 201, the next from 202 to 303, and so on, and that is a pain.
I am sure there is a way to grab the rows in a much easier way, but I am stuck in the definition and cannot see it.
Thanks, I attach the file and the image for the sampling image (ranges from 0 to 0.5 for both x and y).
I appreciate it! Thanks in advance!…
for each object, with one single run, with each object surrounded by the same context geometries (if you check the image I attached the two dark grey boxes are the test geometries and the wirework boxes are the context).
Just recently I understood that it doesn't work (I thought anymore) like this but that if you input more than one test object in the geometry input each one acts as context for the others. This makes things longer because it means that if I have to test say 100 variations of the same object I have to connect and disconnect the geometries 100 times. In the way I remember it was before I had just to input the 100 objects in the geometry input and with one single run get the results in different branches.
Chris says it always worked like this (that each test geometry acts as context for the others), so it means I misunderstood or more likely I remember wrong. So to run multiple studies at the same time he suggests to input multiple geometries and graft the input. I tried but the result is shown in the previous post, the output is quite complicated to manage. You can see that for two test objects with 6 sides each I get one single list with six branches.
Now is not important if it was always like that or was not, but I was suggesting that could be useful that it would work like I remember :) if it is possible. When you input multiple test obejcts in the geometry input they ignore each other so you can run easily multiple studies, one for each object, at the same time. If you want to run one single study on two objects at the same time then you input also these objects in the context input so they shadow each other.
Let me know if this time was more clear. Thank you.
Francesco…
:
______________________________________________________________________
As most of you know by now, Grasshopper will be included in Rhino 6 for Windows. We are almost finished with the Grasshopper in Rhino 6 development and you are invited to try it.
There are many enhancements, including:
High DPI displays are now supported.
Compatible with existing Grasshopper plug-ins.
New components including Make2D, Bend, Flow, Maelstrom, Splop, Splorph, Stretch, Taper, and Twist...
GhPython is now included. It features its own GHA compiler and a major node-in-code speed up.
Stable development target: Your plug-ins continue to work each minor Grasshopper upgrade.
RhinoCommon enhanced: More Rhino core functionality is accessible from within Grasshopper.
Developer documentation is online with guides and API references.
Now:
Download the current Rhino WIP for Windows
Try all your existing Grasshopper definitions
Report any problems you find here...
We want to make sure this new Grasshopper works for you. If you have any issues, David needs to hear from you very soon.
Thank you,
- Bob
Visit Grasshopper at: http://www.grasshopper3d.com/?xg_source=msg_mes_network
______________________________________________________________________
So...
Any news about OS X version? Many of us won't use Parallels or whatever win emulator or have a win machine nearby.
Hope you are working at it.
Cheers
gbrl
…
Added by Gabriel Netto at 3:44pm on October 29, 2016
rtheless, here is how to do that:
Volvox.gha contains the Instructions objects which are the default instruction available in the plugin
Volvox_Instr.dll has the abstract classes from which the gha instructions inherit
Volvox_Cloud.dll finally contains the GH_Cloud object which tells Grasshopper how to treat the geometry.
You have to reference all 3 of them to make this script work. (they should be in the place you've installed Volvox, GH libraries by default). Just copy paste it then into a VB scripting component.
'create 2 instructions - these classes are from the Volvox.gha library Dim in1 As New volvox.Instr_planeclip(plane.WorldXY) Dim in2 As New Volvox.Instr_RandomSub(0.5, 123) 'create 2 rhino pointclouds Dim pc1 As New pointcloud Dim pc2 As New PointCloud
'populate them with some points For i As Integer = -100 To 100 Step 1 pc1.Add(New point3d(10, 0, i)) pc2.Add(New point3d(0, 0, i)) Next 'execute the instructions onto the pointclouds. in1.Execute(pc1) in1.Execute(pc2) 'note the random subsampling instruction has the same seed in both cases, 'hence it will sift the points in the same pattern in2.Execute(pc1) in2.Execute(pc2)
'get the clouds out with the GH_Cloud class, 'so that Grasshopper understands it as geometry object a = New GH_cloud(pc1) b = new GH_Cloud(pc2)
…
ce component.
But whatever I tried,
when I start playing with the quadmesh geometries, they subdivid and become no more one unique planar surfaces. Then the petals (out of the petal component) don't use the quadgeometry I want. (view of the inside of the pine cone).
In the second picture, in blue, you can see that it work correctly when I use the orginal quadmeshes out of the phyllosrf, but in red you see the geometry I want.
Is there any way ?
Thank you ;)…
new components, and the Firefly Firmata has changed since the 1.003 version. However, the problem still exists in that there is not a super smooth workflow for integrating Steppers with Firefly (yet)... but it's not impossible. There is a post on the Firefly website that has some instructions on how to drive a stepper motor using the Generic Serial Write component and the Easy Stepper Driver. You can find a link here for more information: http://www.fireflyexperiments.com/discussions/post/1438445
It's quite possible that if you already have a sketch that is working using a set Arduino variable (say 100, which makes the servo move to 180 degrees) that you're very close to getting it to work with Firefly. You'll want to use the Generic Serial Write component (instead of the Uno Write component... as the Uno Write component has been setup specifically for use with the Firefly Firmata... and you'll be using you're custom script). You'll likely need to modify your Arduino script in some small way to read in the serial information being sent over from Grasshopper. Basically, in Grasshopper, you'll first need to open the port (using the Open/Close Port component). Make sure the baud rate matches the speed that you use in your Arduino sketch (and that the port number matches your board number). Then, on the Generic Write component, you'll set the port number (same as the COM number in the Open/Close Port component) and set the start input to True. Then, all you need to do is connect some data to send over the serial port... If you wanted to send a numeric value (like 100), then just connect an integer slider. As I said, you need to modify your Arduino code so that it knows how to read in the data from Grasshopper and then what to do with that data. Without seeing you're code, it's hard to tell you exactly how to do this... But, perhaps if you upload a file (or send us a file at info[at]fireflyexperiments.com) then we can help you get your file modified so it will work. Once that's done, it should be really straight forward to drive a stepper through Firefly.
HTH,
Andy
PS, integrating steppers into the Firefly firmata is on my wishlist of things to implement into Firefly very soon. Thank you again for bringing it up.…
it is important how you create the surface in rhino!1 Create a planar triangle curve and use surface from planar crv.2. srf by 3 or 4 points. choose 4 points!
select
m rnd As New random(666)
Dim field As New gh_field
Dim crvlist As New list(Of curve)
For i As Integer = 1 To 100 Dim pc As New gh_pointcharge
pc.Charge = rnd.NextDouble
pc.Location = bx.PointAt(rnd.NextDouble, rnd.NextDouble, rnd.NextDouble)
field.Elements.Add(pc)
Next
For i As Integer = 1 To 500 Dim p As New point3d(bx.PointAt(rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25))
Dim pts As point3dlist = field.SolveSteps(p, 0.1, 30, gh_differentialsolver.RungeKutta4)
Dim crv As nurbscurve = nurbscurve.CreateInterpolatedCurve(pts.ToArray, 3)
crvlist.add(crv)
Next
a = crvlist
…