Grasshopper

generative modeling for Rhino

Dave Johnson
  • Male
  • San Francisco, CA
  • United States
Share on Facebook
Share Twitter

Dave Johnson's Friends

  • Arlen Abraham
  • Danny Boyes

Dave Johnson's Groups

Dave Johnson's Discussions

Saving geometry references
7 Replies

I have a whopping big definition with a large set of inputs (that is, references to many separate curves and lines and etc. in the rhino file) that need to be set individually. And I need to run this…Continue

Started this discussion. Last reply by Dave Johnson Mar 25.

More tree structure questions
1 Reply

I'm trying to understand data structures in GH better, to be better Grasshopper wrangler. As an exercise, I'm trying to simplify a massive definition that has 6 separate, identical paths, making it…Continue

Started this discussion. Last reply by Dave Johnson Feb 13.

How to create tree with empty branches?
7 Replies

I must be missing something obvious here, but I'm stumped:I want to create a fairly simple tree structure with six branches, each of which may or may not contain any data.For instance, I have 6 curve…Continue

Started this discussion. Last reply by Danny Boyes Feb 9.

Re-fit curves a given distance from other curves
2 Replies

I'm hoping someone can suggest a way to solve a small problem.I have some curves, not quite parallel to each other, and I want to adjust the curves so that the distance between pairs of them is a…Continue

Started this discussion. Last reply by Dave Johnson Feb 8.

 

Dave Johnson's Page

Latest Activity

Dave Johnson replied to Rasmus Holst's discussion Python output.
"Thanks, Giulio! To be clear, I've been writing in C# (simply because old-fashioned procedural C is my "native" language), but was recently struggling with generating tree structures and found this thread. The RhinoCommon…"
Mar 28
Dave Johnson replied to Rasmus Holst's discussion Python output.
"Whoops, that was me, accidentally pretending to be my colleague Arlen..."
Mar 28
Dave Johnson replied to Dave Johnson's discussion Saving geometry references
"I understand the distinction, and it was an excellent suggestion, thanks. For my particular purposes, it would have complicated the scripting somewhat, (finding out which layer each curve is in and routing it to the appropriate output tree). And…"
Mar 25
Vicente Soler replied to Dave Johnson's discussion Saving geometry references
"The problem with this approach is that the definition won't update if you modify or create new objects in Rhino. You have to manually refresh the GH definition. That's why I suggested connecting a pipeline component to a scripting…"
Mar 25
Dave Johnson replied to Charles Aweida's discussion Creating data trees with C#
"In case it's helpful, I just posted a file on this thread, and one of the scripts there shows how to generate a multi-level tree structure. Thanks again for the starting code, Florian."
Mar 24
Dave Johnson replied to Dave Johnson's discussion Saving geometry references
"Just to get closure on all this: I wrote a C# script that is sort of a special purpose geometry pipeline for my particular file, and it lets me input a simple string (like "B2) and get all the curve geometry I need, arranged into 4 tree…"
Mar 24
Dave Johnson replied to Charles Aweida's discussion Creating data trees with C#
"A big thank you from me too, Florian, it's also exactly what I needed!"
Mar 24
Vicente Soler replied to Dave Johnson's discussion Saving geometry references
"The code (in VB) could be something like this:   Private Sub RunScript(ByVal x As List(Of Guid), ByVal y As Object, ByRef A As Object) Dim dt As New datatree(Of geometrybase) For Each id As guid In x Dim obj As New…"
Mar 22
Vicente Soler replied to Dave Johnson's discussion Saving geometry references
"If you know how to script in C# it's very easy to do what you are asking. Just set the pipeline layer name to something like "B1*" so that it gets all the objects in all the layers you want. Then use a scripting component to find out…"
Mar 22
Dave Johnson replied to Dave Johnson's discussion Saving geometry references
"Thanks Danny, that's partly helpful. It's still a large manual job: instead of having to select the geometry in rhino and then do a "set multiple curves" 19 times, I have to manually edit the layer name in 19 different pipeline…"
Mar 22
Danny Boyes replied to Dave Johnson's discussion Saving geometry references
"Use the Geometry Pipeline component. This allows you to specify either Object Names or Rhino Layers or both. You can also use wild card characters (*)."
Mar 22
Dave Johnson posted a discussion

Saving geometry references

I have a whopping big definition with a large set of inputs (that is, references to many separate curves and lines and etc. in the rhino file) that need to be set individually. And I need to run this definition successively, on many different sets of input geometry. Further, I will want to re-run it after changing little bits of the geometry in one or more sets.Being basically lazy, I'm trying to find the easiest way to do this, without having to re-enter all the geometry references every time…See More
Mar 22
Dave Johnson replied to matthias rümmele's discussion Access a Curves Control Points
"Even quicker is to use the Discontinuities component, it will give you polyline vertices directly."
Mar 6
Dave Johnson replied to Andrew Haas's discussion Don't buy a Mac because there's no grasshopper?
"I'm also a die-hard Mac user who loves rhino and grasshopper, and I'm quite happy with the bootcamp way of doing things. Yes, slightly inconvenient sometimes, but it's really a minor thing, for me anyway. To me, the advantages of…"
Mar 6
Dave Johnson replied to Mark Pothier's discussion find closest point with same index value
"I don't know the answer, but I have one thought: The Flip Matrix component would convert your data tree into one where all the points at the same index are in one branch, which should be useful. (So instead of 41 branches with 161 points…"
Feb 23
Dave Johnson replied to Dave Johnson's discussion More tree structure questions
"I learned much over the weekend, here's some of it in case it helps others: 1) Trees with null branches just pass right on through, maintaining the tree structure. (Many components complain loudly about the presence of nulls, but they keep…"
Feb 13

Profile Information

Company, School, or Organization
Nikolas Weinstein Studios

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Members

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service