Grasshopper

algorithmic modeling for Rhino

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

Anders Holden Deleuran's Friends

  • Aakriti Sood
  • CITA
  • Henrik Leander Evers
  • Brian Ringley
  • Mostapha Sadeghipour Roudsari
  • Miguel Rus
  • Toussaint Jimenez Rojas
  • kao.gene
  • djordje
  • Ian Huff
  • hamia Aghaiemeybodi
  • Jeg
  • Mathias Gmachl
  • Daniel Davis
  • Chris Landau

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Wish: Lock position and Name/Nickname of canvas objects
8 Replies

Hi David, I just did a search for "lock position" and a couple of…Continue

Started this discussion. Last reply by David Rutten Jun 25.

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.

 

Anders Holden Deleuran's Page

Latest Activity

Will Pearson commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"Hang on, I found it! I used the classic Taubin Tensors approach explained here: http://pdf.aminer.org/000/234/737/curvature_approximation_for_triangulated_surfaces.pdf"
1 hour ago
Will Pearson commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"Yes, sorry, here you go: https://gist.github.com/pearswj/4755800. This was back when numpy wasn't so readily use-able in RhinoPython so I wrote my own (albeit relying on ALGLIB for an eigenvector solver). I'm trying to track down the…"
1 hour ago
Anders Holden Deleuran commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"Hi Will. No worries, thanks for the warm Git welcome and for replying to the post :)I was actually thinking about how one might calculate curvature direction after writing the curvature analysis method in the blog post. So indeed a good place to…"
4 hours ago
Will Pearson commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"Anders, thanks for sharing and welcome to the GitHub revolution ;) This reminded me of a RhinoPython script that I wrote last year to extract local curvature tensors from a mesh: https://gist.github.com/pearswj/7151030. I was focusing more on…"
5 hours ago
Anders Holden Deleuran replied to tristan.gobin's discussion Python module search path
"You should be able to add a path like so:import syssys.path.append("C:\YourModuleFolder")Hope that helps."
Monday
Anders Holden Deleuran replied to Brian Ringley's discussion Key/Value User Text Within Grasshopper Document?
"Added a version where the "metadata" is converted to a dictionary (Pythons key/value data type)."
Friday
Anders Holden Deleuran replied to Brian Ringley's discussion Key/Value User Text Within Grasshopper Document?
"Depending on the data type (i.e. strings) you could use the GH_Document.Properties property for persistent metadata. Not sure if that is what it is meant for, but it seems to work. See attached definition. Also, credits to Mostapha for…"
Friday
筑梦NARUTO commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"very nice,Thanks for sharing"
Thursday
djordje commented on Anders Holden Deleuran's blog post Mesh Analysis GHPython Components
"Nice. Thank you."
Thursday
Anders Holden Deleuran posted a blog post

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…See More
Thursday
Anders Holden Deleuran replied to Nezumi's discussion [Python] Attractor point recursive subdivision[PROBLEM_Error]
"Hehe, been there myself :)"
Jul 9
Anders Holden Deleuran replied to Roger Sterling's discussion ghPython Boolean Inputs
"I've attached an example which demonstrates how one might iterate all the GHPython component input parameters and access their data. Hope that helps.."
Jul 9
Anders Holden Deleuran replied to Nezumi's discussion [Python] Attractor point recursive subdivision[PROBLEM_Error]
"I' not sure Python supports the ++ style of incrementing a variable. If not this should work:variable += 1"
Jul 9
David Rutten replied to Anders Holden Deleuran's discussion Wish: Lock position and Name/Nickname of canvas objects
"I'd imagine every property that is in a locked state needs to signal this to the user. If the name is locked, then instead of an editable textbox in the popup menu you'll see a locked icon. The Preview and Enabled states will be greyed out…"
Jun 25
nikos tzar replied to Anders Holden Deleuran's discussion Wish: Lock position and Name/Nickname of canvas objects
"hi all, maybe i'm missing something but I don't understand why the display of a locked object should be different at all times (and also how this would be possible with various types of locked properties). I believe the ideal would be a…"
Jun 25
Brian Ringley replied to Anders Holden Deleuran's discussion Wish: Lock position and Name/Nickname of canvas objects
"David, Anders, I'd like to lock objects for the purpose of standard title blocks for the office, therefore this would strictly be a UI option, and strictly for the object's position property. The display should absolutely be different, but…"
Jun 24

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 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 — 6 Comments

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