Grasshopper

algorithmic modeling for Rhino

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

Anders Holden Deleuran's Friends

  • John
  • LabLeo
  • Andy Watts
  • aman gupta
  • eliod ran
  • Mihai C
  • Vasily Sitnikov
  • Chapuline
  • Michel Schmeck
  • Gregory Quinn
  • Sepideh Garivani
  • Timothy Tai
  • Sebastian Gatz
  • Daniel Kolling Andersen
  • Phil Ayres

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

(Forum bug) Activity Feeds Appear Broken
2 Replies

Hi All,For the past week or so the activity feeds on Home and My Page appear to be broken (for me). Couple of things I've noticed: 1) On My Page the Latest Activity feed is either empty or not…Continue

Started this discussion. Last reply by djordje Feb 21.

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, 2016.

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, 2016.

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.

 

Hello, Anders Holden Deleuran!

Latest Activity

Anders Holden Deleuran liked Daniel Piker's photo
Wednesday
Anders Holden Deleuran replied to Marc's discussion Questions about Python stickies?
"Yes on all four accounts (sticky is simply a Python dictionary). Closing/crashing Rhino will clear the sticky."
Monday
Anders Holden Deleuran replied to Jose Ángel's discussion HoneyBee LabelSurface: 'Brep' object has no attribute 'Surfaces' in the group Ladybug Tools
"Might be a long shot, but perhaps you're running an old Rhino Service Release in which RhinoCommon does not have the Brep.Surfaces property yet (admittedly, sounds like a long shot, but perhaps)."
May 22
Anders Holden Deleuran replied to Grasshope's discussion Interesting network UI functions of the latest Houdini v16
"The ability to switch between wire styles (bezier, straight, angled, curved etc.) would be much appreciated (love the rounded ones in the screenshot above). Also the "dot" concept seems very interesting, I usually insert a parameter to…"
May 18
Anders Holden Deleuran replied to Mateusz Zwierzycki's discussion Python clr module problem
"I think so. I know that a single forward slash "should" work on Windows, but this does proves that something's fucky! As far as I recall you can use os.path.normpath() to normalise paths such that they "should" work…"
May 18
Anders Holden Deleuran replied to Mateusz Zwierzycki's discussion Python clr module problem
"Seems to work on my system. Sounds like you might be referencing a stray/wrong assembly like Tom said (likely caused by the ambiguous reference method): I'm surprised that your referencing is even working, here's what I would expect:"
May 18
Anders Holden Deleuran replied to Mateusz Zwierzycki's discussion Python clr module problem
"Not sure that this will help, but you probably want to use clr.addreferencetofileandpath() when targeting a full path like that (and use double backslash instead of forward slash, if I recall correctly)."
May 17
Anders Holden Deleuran replied to Carina's discussion Smooth connection between more than 2 curves
"Have a look at the Exoskeleton and/or Cocoon plugins that both wrap curve networks to generate continuous mesh topologies. Also, please refrain from double posting ;)"
May 17
Anders Holden Deleuran replied to Lasse Kildemoes's discussion Adding colours to elements in Grasshopper
"Hi Lasse, you might also want to go through some of basics and keep the excellent Grasshopper primer at hand for reference (see this section for color/preview). The search function on the forum is also good to know."
May 16
Anders Holden Deleuran replied to Gotzman's discussion Mesh Eval to Python
"I'm pretty sure that "Mesh Eval" just implements the RhinoCommon mesh methods Mesh.PointAt, Mesh.NormalAt andMesh.ColorAt. So you might as well call those directly in your Python code instead of doing weird workarounds…"
May 12
Anders Holden Deleuran replied to Marco Pellegrino's discussion Geno Pool
"Ah crap, in that case you might set the Decimals on a GenePool to zero, half the range, and multiply the output by 2:"
May 11
Anders Holden Deleuran replied to Marco Pellegrino's discussion Geno Pool
"I don't think you can do it with a genepool, but it is possible with sliders if that's an option:"
May 11
Anders Holden Deleuran replied to pierre m's discussion Beginner problem
"Andrew Heumann wrote a terrific breakdown of the three scripting languages available through Grasshopper. If I were to add anything I would explicitly specify that we're talking about IronPython (the .NET version of Python, written in…"
May 11
Anders Holden Deleuran replied to Matteo Falduto's discussion How to force GH to recompute inside a Python loop
"Not really that strange :) Calling ghenv.Component.ExpireSolution() like that will simply cause the component to continuously recalculate the script (at each iteration of the inner loop no less). I'm afraid I don't understand…"
May 10
Anders Holden Deleuran replied to Matteo Falduto's discussion How to force GH to recompute inside a Python loop
"No worries, knowing this kind of stuff can be useful in many cases I find.To expire a GHPython component from within itself you can call this (I forget which argument i.e. True/False is appropriate, but I guess that also depends on the specific…"
May 9
Anders Holden Deleuran replied to Matteo Falduto's discussion How to force GH to recompute inside a Python loop
"Ah I see, so the real problem is more of a brute force search problem then. In that case I would recommend the "Brute Force" component that comes with TT Tools. It cycles through all the combinations for a list of sliders:Ps. for…"
May 9

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

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service