Grasshopper

algorithmic modeling for Rhino

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

Anders Holden Deleuran's Friends

  • CITA
  • Henrik Leander Evers
  • Mostapha Sadeghipour Roudsari
  • Miguel Rus
  • Toussaint Jimenez Rojas
  • kao.gene
  • djordje
  • Ian Huff
  • hamia Aghaiemeybodi
  • Jeg
  • Mathias Gmachl
  • Daniel Davis
  • Chris Landau
  • Aron Fidjeland
  • Jens Pedersen

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Making Kangaroo forces using Node-in-code is very slow
3 Replies

Hi All,Following a couple of…Continue

Tags: Node-in-code, Kangaroo, Python

Started this discussion. Last reply by Anders Holden Deleuran Apr 4.

Customize Remote Control Panel accent color and font style
2 Replies

First off let me express how awesome it is having the RCP back again. I've been testing it out this past week and it works really well! That…Continue

Tags: RCP

Started this discussion. Last reply by Anders Holden Deleuran Feb 28.

Wish: Timer block access within Grasshopper GUI
6 Replies

Hi David, When using timers, specifically with Kangaroo, I tend to use the global timer block switch on the Windows taskbar quite a lot. This works quite well, however it is somewhat inconvenient…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 1, 2013.

Animate Slider - Reference a Parameter in Frame Tag
2 Replies

Hi All,When animating a slider, is it possible to reference a parameter value on the canvas in the frame tag (in this case a string):…Continue

Tags: Tag, Frame, Slider, Animate

Started this discussion. Last reply by Anders Holden Deleuran Aug 28, 2013.

 

Anders Holden Deleuran's Page

Latest Activity

Anders Holden Deleuran replied to Roger Sterling's discussion import weaverbird library in python
"You could use the recently added node-in-code functionality (warning: can be slow). I'm not sure that you'll be able to import weaverbird as an assembly, but perhaps Giulio can chime in on that subject. I guess it all depends a bit on…"
Apr 10
Anders Holden Deleuran replied to Roger Sterling's discussion import weaverbird library in python
"Python list comprehension also is pretty neat for such cases:edges = [m.TopologyEdges.EdgeLine(i) for i in range(m.TopologyEdges.Count)]"
Apr 9
Anders Holden Deleuran replied to Anders Holden Deleuran's discussion Making Kangaroo forces using Node-in-code is very slow
"Thanks Djordje, I didn't even consider checking discourse. Learned a lot from that thread. That sounds really good Steve, looking forward to see what you guys come with. I hadn't really considered the potential of node-in-code, but…"
Apr 4
Steve Baer replied to Anders Holden Deleuran's discussion Making Kangaroo forces using Node-in-code is very slow
"Hi Anders, I have been working on this recently and have a prototype that shows dramatic improvements in performance. I'm meeting with David and Giulio next week and want to go over these changes with them before we push out any sort of new…"
Apr 3
djordje replied to Anders Holden Deleuran's discussion Making Kangaroo forces using Node-in-code is very slow
"Hi Anders,It's the issue with node-in-code. Check this topic for more info. It was originally created for the purpose of parallel module issues but in the end it looks like the node-in-code was the cause of the speed drawback."
Apr 3
Anders Holden Deleuran posted a discussion

Making Kangaroo forces using Node-in-code is very slow

Hi All,Following a couple of project which implement Python and Kangaroo I've been experimenting with generating Kangaroo forces within the Python scripts responsible for generating the underlying "dynamic geometry".It seems that the new…See More
Apr 3
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Hehe, no worries. One of my main headaches with assemblies was always trying to figure out their actual name (as in, not the file name) and their actual content (available types), I just spent a little time looking into assembly introspection. Seems…"
Apr 3
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Thanks Will. That's certainly true. In your example "PlanktonGh" refers to the "old" .dll correct? The one which is now simply called "Plankton.gha"? In which case one has to use "AddReferenceToFile" as…"
Apr 2
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Edit: I see you already figured it out Daniel. I attached another version which assumes that the GH library folder is read by RhinoPython, but offers the perhaps least "ugly" method :)140401_PlanktonDemoPython_Update03.gh"
Apr 1
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Thanks Daniel,This does seem to make Plankton more tricky for Python implementation. In order to reference the Plankton.gha I renamed it PlanktonGh.dll and imported in the same way as Plankton.dll. This provides access to…"
Apr 1
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Hi Daniel,Do you mean that a Rhino.Geometry.Mesh now has a method for converting it to a PlanktonMesh? If so, I'm not able to call it I'm afraid. I'm Running Rhino 5 SR8 64-bit (5.8.40305.11495, 03/05/2014), GH 0.9.0072 with the…"
Apr 1
Anders Holden Deleuran commented on Daniel Piker's group Plankton
"Hi Mathias,Yes it looks one cannot simple pass a Rhino mesh when instantiating a Plankton mesh in the latest version. I have attached an updated example in which we access vertex/face list and add them to the Plankton mesh "manually". This…"
Apr 1
Anders Holden Deleuran replied to DIMITRIS VENIZELOS's discussion Heatmap into Number Range
"I'm pretty sure that the colours might be a product of plotting the analysis values on a 0.0 to 0.7 range and using this as the hue value on a hue/saturation/value colour model (in Grasshopper HSL). Attached a file demonstrating the principle,…"
Mar 31
Anders Holden Deleuran replied to Benjamin Ryklin's discussion while loop breaks
"No worries :) While it mainly targets the use of Python within Rhino (as in, it does not cover the Grasshopper component) I would still recommend the RhinoPython primer for getting the basics down. It's a nice concise introduction to both…"
Mar 26
Anders Holden Deleuran replied to Benjamin Ryklin's discussion while loop breaks
"Sounds like you might have written an infinite loop. This happens if your while loop never meets a condition in which it stops looping (i.e.  i is never smaller or equal to sep). I would suggest building your logic using for loops…"
Mar 26
Anders Holden Deleuran replied to Friedrich Pei's discussion Using third party module in RhinoPython?
"I mainly develop in Python straight in the GHPython editor, so I'm afraid I can't really help. That said I'm thinking it should be fairly straightforward to import any .dll as long as its path is read by which ever environment/the…"
Mar 18

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

Comment Wall (9 comments)

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

Join Grasshopper

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

At 8:04am on March 4, 2013, hamia Aghaiemeybodi said…

Hi anders,

I'm trying to split curves in python and i get this eror:

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

Im sure its Guid!!!

here is the simple script:

import rhinoscriptsyntax as rs
import Rhino as rc
curve01=rs.coercegeometry(x)
curve01.Domain = rc.Geometry.Interval(0,1)
print (rs.CurveDomain(curve01))
a=rs.SplitCurve(curve01,y)

ay idea!

Thanks.

At 1:53am on February 28, 2013, hamia Aghaiemeybodi said…

Just fixed the problem, Thanks anyway.

There was a coding mistake from my side :) ...

At 12:54am on February 28, 2013, hamia Aghaiemeybodi said…

Hi anders,

I'm working on a fillet script in python grasshopper, everything works fine as long as input polylines are in item structure, it gives eror when i set them in datatree structure this eror pops up:

 Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

any idea?!

fillet.gh

At 9:09am on September 24, 2009, Thomas Bildsøe said…
Yo!!! velkommen ombord!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service