Grasshopper

algorithmic modeling for Rhino

Anders Holden Deleuran
  • Male
  • Copenhagen
  • Denmark
Share on Facebook
Share

Anders Holden Deleuran's Friends

  • Mihai C
  • Vasily Sitnikov
  • Chapuline
  • Michel Schmeck
  • Gregory Quinn
  • Sebastian Gatz
  • Daniel Kolling Andersen
  • Phil Ayres
  • SA
  • M.K.T. Heinrich
  • Fakinos Konstantinos
  • Marc
  • 筑梦NARUTO
  • ng5 Alex
  • CITA

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

GHPython: Slider Undo Causes Input Param to Temporarily Not Exist
2 Replies

Hi Giulio/Steve, Recently noticed a small "bug" in the GHPython component (also present in the Rhino 6 WIP version): If you have a slider wired up to an input param, change the slider and then undo,…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 5.

Polyline Curves with CurveSelf Intersection not acting as expected
4 Replies

Hi All,I'm trying to wrap my head around how the Curve-Self intersection component (ie. Rhino.Geometry.Intersect.Intersection.CurveSelf class) deals with Polyline Curves. See images below and…Continue

Started this discussion. Last reply by Thibault Schwartz Jan 23.

C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console
2 Replies

I've been getting up to speed with the C# scripting component and have a few questions/suggestions (coming from a GHPython component experience): 1) Does the C# component have any keyboard…Continue

Started this discussion. Last reply by Anders Holden Deleuran May 21, 2015.

GHPython Some Bottlenecks (Bugs?)
38 Replies

Hi Giulio and Steve, I've recently noticed a couple of bottleneck with the GHPython component which can quite severely impede on performance. Thought I would bring them up here so as to hopefully…Continue

Started this discussion. Last reply by Giulio Piacentino Jul 14.

 

Hello, Anders Holden Deleuran!

Latest Activity

Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Agreed, just read your code again and see what you were doing. Think I was just confused by the line: tuples = []  ;)"
Friday
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Yup, looks like the base logic is the same as method 2 in my example. Note that tuples in Python is a data structure (an immutable array, where lists are mutable)."
Friday
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Hi Chapulin, attached a file that demonstrates two general methods for sorting data values in Python based on other data keys:1) If the keys to sort by is a property of the data to sort, use a lambda function.2) If the keys to sort by is NOT a…"
Friday
Anders Holden Deleuran liked Petras Vestartas's photo
Thursday
Anders Holden Deleuran replied to Max Marschall's discussion Remap gradient
"Yes, you would need to know how the values are mapped onto a color gradient in the model which generated the colors in the first place (i.e. which channels in which color model in which range). You might be be able to guesstimate this through a…"
Nov 29
Anders Holden Deleuran replied to cuki fuki's discussion GH + Python mesh edges
"Attached an example of two ways of doing it (both uses RhinoCommon method directly). Neither yields duplicates. Hope that helps."
Nov 29
Anders Holden Deleuran replied to Max Marschall's discussion Remap gradient
"Hi Max, this function demonstrates both how to map a list of values from domain to another and how to make a color gradient based on this. Might help: https://gist.github.com/AndersDeleuran/82fa2a8a69ec10ac68176e1b848fdeea"
Nov 27
Anders Holden Deleuran replied to m.architect's discussion how can optimization area with galapagos?
"Edit: Using the bouncy solver can probably yield "better" looking cells, as you can use damping to have the movement in the system be a bit slower (attached file with example)."
Nov 25
Anders Holden Deleuran replied to m.architect's discussion how can optimization area with galapagos?
"You could also solve this problem using Kangaroo2 and the PolygonArea goal (see attached file). You might add additional goals to try and equalize the internal angles, edge lengths etc. of the polylines."
Nov 25
Anders Holden Deleuran replied to Mohamed Naeim's discussion Rotate Camera - Python
"Maybe this method. Didn't try it though."
Nov 24
Anders Holden Deleuran replied to johnnyUtah05's discussion Controlling Sequential Flow with Time Module - Python
"Note that the first parameter of the ghDoc.ScheduleSolution() call determines how often (in milliseconds) the component updates itself. So, you could also use this to only have the component check/shoot out stuff…"
Nov 23
Anders Holden Deleuran replied to johnnyUtah05's discussion Controlling Sequential Flow with Time Module - Python
"You probably shouldn't be using time.sleep() as this locks up the interpreter and thus the component and thus the GH canvas. I'm having a bit of a hard time understanding precisely what you're after, but from what I can gather it…"
Nov 23
Homer Garcia Santana liked Anders Holden Deleuran's video
Nov 23
I_M_F [Iker Mugarra Flores] liked Anders Holden Deleuran's video
Nov 23
Veerasu Saetae liked Anders Holden Deleuran's video
Nov 23
Anders Holden Deleuran replied to johnnyUtah05's discussion Controlling Sequential Flow with Time Module - Python
"The attached GHPython does three things which may help with your needs:1) Uses the Python time module to get a start time and subsequently calculate elapsed time(s). 2) Uses the globals() method for instantiating a persistent variable for…"
Nov 22

Profile Information

Company, School, or Organization
PhD Fellow, CITA, Royal Danish Academy of Fine Arts, School of Architecture
Web or Blog
http://www.andersholdendeleuran.com

Anders Holden Deleuran's Photos

Loading…
  • Add Photos
  • View All

Anders Holden Deleuran's Videos

  • Add Videos
  • View All

Anders Holden Deleuran's Blog

Mesh Analysis GHPython Components

Hi All,



I'm currently in the process of wrapping my head around GitHub. Seeing as how I'm now back in academia I thought this might be a good chance to share some code, for once :)



CITA recently helped conduct the Amphibious Hamburg workshop at the AAC in Hamburg co-tutored by…

Continue

Posted on July 17, 2014 at 6:30am — 7 Comments

Comment Wall (14 comments)

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

Join Grasshopper

At 7:44am on October 10, 2016, Arpan Bakshi said…

GhPython Workshop coming up this month. Tool developer Chris Mackey is teaching a live webinar titled - Making Your Own Python Components. More information and registration at https://attendee.gototraining.com/42b11/register/4476111114579892225

At 7:31am on November 19, 2014, hamia Aghaiemeybodi said…

Many thanks Anders,

I used xlrd and xlwt it works but its a bit tricky. I'll try the .NET methods.

cheers

At 2:55pm on November 17, 2014, hamia Aghaiemeybodi said…

Hi Anders,

Do you know how can I open and excel sheet in python grasshopper, add some line to the sheet, save and close it!

Thanks

At 2:20pm on October 17, 2014, hamia Aghaiemeybodi said…

Hi Anders, thanks for the reply. I checked that already it says if it is cylinder but I'm looking for a way to find out an easy way to pre-rationalize sub-surfaces which are not cylinder but close to cylinder so I can convert them to cylinder surface later! if it make any sense to you . . .

At 5:24pm on October 10, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you any easy and basic way to check if a double surface cab get converted into cylinder surface? Basically for fabrication to check if I can reduce the cost by converting few double curved panel and get more or less the same result!

many thanks!

At 7:30am on January 29, 2014, hamia Aghaiemeybodi said…

Many thanks Anders;

I figured that out, now I'm looking for way to convert text to one single curve (to save time for laser cutting). At the moment i get the out line of text as curve which is great but still time consuming.

Regards,

H/

At 7:26am on January 28, 2014, hamia Aghaiemeybodi said…

here is the complete one:

if(!string.IsNullOrEmpty(face) && size > 0 && !string.IsNullOrEmpty(content) &&
pl.IsValid)
{

var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);
Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

if(txt != null)
{
var tt = txt.Geometry as Rhino.Geometry.TextEntity;
A = tt.Explode();
}

RhinoDoc.ActiveDoc.Objects.Delete(te, true);

At 7:14am on January 28, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you know how can i convert  this c# code into python? The goal is to creat single curve text for laser cut:

RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

thanks . . .

At 12:17am on March 7, 2013, hamia Aghaiemeybodi said…

Hi.

Of course. Thanks for reply. I'm using conditional check. It helps more and as you said easier to figure out where the problem is.

Thanks,

At 9:57am on March 4, 2013, hamia Aghaiemeybodi said…

Hej man,

I found it again, seems like to solve my problem i just need to post my question on your wall :D . .. 

cheers...

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2016   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service