Grasshopper

generative modeling for Rhino

Joost Lauppe
  • Male
  • amsterdam
  • Netherlands
Share on Facebook
Share Twitter

Joost Lauppe's Friends

  • Sridevi Koonath
  • Florian Frank
  • Giulio Piacentino
  • Jon Mirtschin

Joost Lauppe's Groups

Joost Lauppe's Discussions

Setting the preview colours (C#)
10 Replies

Hi there,I'm struggling with this problem for a while now, so I thought i'd see whether someone could help me. What I'm trying to do is set the preview colours of a list of breps through the…Continue

Tags: colours, preview

Started this discussion. Last reply by Joost Lauppe Jan 5.

Dynamic nr of input parameters in UI
20 Replies

Hi All, I was wondering (and couldn't really find a direct answer on the forum) whether it is possible to dynamically control the number of input parameters. Let's say if a small component with only…Continue

Tags: UI

Started this discussion. Last reply by Ángel Linares Sep 17, 2012.

Create Mesh from topology
3 Replies

Hi there, I'm trying to create a Mesh object from a given topology. So far I haven't been able to find a direct way of doing this (feeding it directly with the topology that is...). Closed thing I…Continue

Tags: Mesh

Started this discussion. Last reply by Joost Lauppe Oct 4, 2011.

Create a custom parameter
5 Replies

Hi there, I'm trying to create a custom parameter. I've created a Data class which inherits from 'Grasshopper.Kernel.Types.IGH_Goo'.  I'm not sure how to correctly implement the ScripVariable…Continue

Started this discussion. Last reply by Joost Lauppe Sep 24, 2011.

 

Joost Lauppe's Page

Latest Activity

Joost Lauppe replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Yes! I've fixed it! Finally... Also thanks to some of your suggestions. Eventually I found a way to display the individually coloured breps without the red overlay. Sorry for the confusion, I am indeed working on a group of custom…"
Jan 5
Florian Frank replied to Joost Lauppe's discussion Setting the preview colours (C#)
"for a custom component this doesn't work... DA.Iteration == 0 was just thought to work for your custom display code If you're doing a custom component you might write in your "RegisterOutputParams"…"
Jan 5
Joost Lauppe replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Thanks, So this should be included in the SolveInstance method? The part I don't understand is (IGH_Component) owner, how should that be translated for a custom component? if (DA.Iteration == 0) { IGH_Component component =…"
Jan 5
Florian Frank replied to Joost Lauppe's discussion Setting the preview colours (C#)
"if (runCount == 0) { IGH_Component component = (IGH_Component) owner; IGH_Param param = component.Params.Output[2]; //2 is the index of the Output to hide IGH_PreviewObject prvObject = param as IGH_PreviewObject; if ((prvObject != null))…"
Jan 5
Joost Lauppe replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Yes"
Jan 5
Florian Frank replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Yes...runCount is important if your Script gets executed several times within one change of data (supplied Brep list). Hm so your specified colors are all close to red? Did you use a DisplayMaterial with opacity or without? If the opacity is really…"
Jan 5
Joost Lauppe replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Thanks Florian, I've used this runCount == 0 statement to clear the rgb and brep lists, is that what you're hinting at? I've come a bit closer to the problem, but still haven't resolved it. It seems that the breps are coloured…"
Jan 5
Florian Frank replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Your Welcome, So do you have set the input of your Breps to List Access, as i did in my example? The input should be of Type "List<Brep>" and NOT "Brep"... If it doesn't work, you should try this: if (DA.Iteration ==…"
Jan 5
Joost Lauppe replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Thanks Florian,I would expect the code to work as well but somehow all the breps turn dark red. I've checked the m_RGBNrs and they hold different numbers for the different breps.The thing which I can't explain is that the…"
Jan 5
Florian Frank replied to Joost Lauppe's discussion Setting the preview colours (C#)
"Hi Joost, the code seems to be right. I've done the same a lot of times...check your values in the m_RGBNrs Array/List!   Here you can see an example: private void RunScript(List<Brep> x, ref object A) { breps = x; color =…"
Jan 4
Joost Lauppe joined Giulio Piacentino's group
Thumbnail

Weaverbird - Topological Mesh Editor

Weaverbird is a topological modeler that contains many of the known subdivision and transformation operators, readily usable by designers. Instead of doing the work repeatedly, or sometimes using complicated scripts, this plug-in helps reconstructing shapes as meshes, subdivides and refines even polyline lists, and helps preparing the model for fabrication. Weaverbird is the first released addon for Grasshopper but the group is new, so please join it to participate in discussions, ask questions…See More
Jan 3
Joost Lauppe joined Jon Mirtschin's group
Thumbnail

Geometry Gym BIM

BIM (Building Information Modeling) enhancements for Rhino and Grasshopper, import/export to Revit, Digital Project, Bentley and Archicad amongst others.  Also Structure modeling (including analytic) and Computational Geometry Tools such as mesh relaxation/inflation and tessellation tools.See More
Jan 3
Joost Lauppe posted a discussion

Setting the preview colours (C#)

Hi there,I'm struggling with this problem for a while now, so I thought i'd see whether someone could help me. What I'm trying to do is set the preview colours of a list of breps through the following method: public override void DrawViewportMeshes(IGH_PreviewArgs args){         for (int i = 0; i < this.m_ViewPortBreps.Count; i++){Rhino.Display.DisplayMaterial mat = new Rhino.Display.DisplayMaterial(Color.FromArgb(255 - this.m_RGBNrs[i], this.m_RGBNrs[i], this.m_RGBNrs[i]),…See More
Jan 3
Ángel Linares replied to Joost Lauppe's discussion Dynamic nr of input parameters in UI
"That topic could be really useful :) I'm having problems figuring out where to place the "AddHandler" statement (I've putted it inside component constructor) and how to code and where to place the handler Sub. Regards."
Sep 17, 2012
Luiza Soares replied to Joost Lauppe's discussion gHowl spreadsheet IN component problem
"I would like to know if you solved your problem. I'm having exactly the same. The spreadsheet IN component doesn't recognize the original file. First I tried a .xls file, then a .ods file. But it still turned red. I have OppenOffice…"
Sep 16, 2012
David Rutten replied to Joost Lauppe's discussion Dynamic nr of input parameters in UI
"Yes, should be. The GH_ParamServer class now has events that allow you to keep track of parameter changes. Basically it channels all events from all the parameters and provides a single bottleneck event for them all, which means you only have to…"
Nov 25, 2011

Profile Information

Company, School, or Organization
tudelft

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service