Grasshopper

algorithmic modeling for Rhino

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

Anders Holden Deleuran's Friends

  • Phil Ayres
  • Aakriti Sood
  • CITA
  • Henrik Leander Evers
  • Brian Ringley
  • Mostapha Sadeghipour Roudsari
  • Miguel Rus
  • Erick Vásquez
  • Toussaint Jimenez Rojas
  • kao.gene
  • djordje
  • Ian Huff
  • hamia Aghaiemeybodi
  • Jeg
  • Mathias Gmachl

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Wish: Add Single Click Functionality to Boolean Toggle
4 Replies

Hi David,I've been using the RCP quite a lot lately and have come to appreciate how a Boolean Toggle published in the RCP acts more like a radio button requiring only a single mouse click to change…Continue

Started this discussion. Last reply by Anders Holden Deleuran Nov 12.

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.

 

Hello, Anders Holden Deleuran!

Latest Activity

Anders Holden Deleuran replied to Eduardo's discussion Python List to Branch solver
"I don't see why it is "bad" to import the grasshopper assembly. If you're going to be making or modifying gh datatrees via scripting you are going to need it. You can make the datatree structure as complex as you like using the…"
Thursday
Anders Holden Deleuran replied to Eduardo's discussion Python List to Branch solver
"A "clean" way would be to make a GH datatree in the script and populate it. See attached file.."
Thursday
Anders Holden Deleuran replied to Rico Cacciatore's discussion How to Write a form finding GH definition to select random elements and connect them whilst following a set of predefined rules.
"Breaking down the Rubyscript to pseudocode or a flowchart would probably be a good start (i.e. analyse the algorithm). Then identify which geometry types are being implemented (i.e. read the Sketchup SDK) and find equivalent types in…"
Dec 1
Anders Holden Deleuran replied to Thomas Perkov's discussion Python: list merged into branches? :-S
"Yes it can be a bit difficult to figure out which methods are available and what they do. Two things help here:1) Download the Grasshopper SDK Help (under the help dropdown menu in Grasshopper) and look up DataTree .2) In Python you can always…"
Nov 21
Anders Holden Deleuran replied to Thomas Perkov's discussion Python: GUIDs
"Great breakdown. I should add that my original post was primarily focused on operating on geometry GUIDs. If one is scripting Grasshopper itself, indeed canvas object GUIDs are super useful (necessary even).."
Nov 21
Anders Holden Deleuran replied to Thomas Perkov's discussion Python: GUIDs
"Hi Thomas. The attached definition should get you going with regards to getting/setting slider properties using GHPython.In general I would recommend not to operate on GUIDs when scripting within the Grasshopper document. You can read more about…"
Nov 20
hamia Aghaiemeybodi left a comment for Anders Holden Deleuran
"Many thanks Anders, I used xlrd and xlwt it works but its a bit tricky. I'll try the .NET methods. cheers"
Nov 19
Anders Holden Deleuran replied to Matthew Padilla's discussion Extract slider title to be uses in list
"Here's a scripting approach using the GHPython component."
Nov 18
hamia Aghaiemeybodi left a comment for Anders Holden Deleuran
"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"
Nov 17
Anders Holden Deleuran replied to Thomas Perkov's discussion Python: list merged into branches? :-S
"Attached how I would approach it, doesn't need to be so involved ;)"
Nov 13
Anders Holden Deleuran replied to Marc Syp's discussion Pain Points in Grasshopper
"Apologies for cross-posting, but I suppose the wish I posted here would be considered a "pain point". In brief, it would be great to add single click functionality to Boolean Toggles on the canvas. Best, Anders"
Nov 13
Anders Holden Deleuran replied to Anders Holden Deleuran's discussion Wish: Add Single Click Functionality to Boolean Toggle
"Precisely. I have also been using the value list as a workaround. Though as a Check List instead of Value Cycle and exploiting the fact the None will evaluate as False in Python conditionals (attached an example). Thanks for the replies guys.."
Nov 12
Danny Boyes replied to Anders Holden Deleuran's discussion Wish: Add Single Click Functionality to Boolean Toggle
"Obvious down side to this is that Value List does not get published to RCP"
Nov 12
Danny Boyes replied to Anders Holden Deleuran's discussion Wish: Add Single Click Functionality to Boolean Toggle
"Here's one that might: Use a Value List and set the contents to: Then right click on the component and select Value Cycle. This will allow a single click to move the list on one entry at a time always returning to the beginning which ever…"
Nov 12
Arend replied to Anders Holden Deleuran's discussion Wish: Add Single Click Functionality to Boolean Toggle
"Here's a quick hack to manipulate a toggle with a button. It will not compete for any beauty contests soon. "
Nov 12
Anders Holden Deleuran posted a discussion

Wish: Add Single Click Functionality to Boolean Toggle

Hi David,I've been using the RCP quite a lot lately and have come to appreciate how a Boolean Toggle published in the RCP acts more like a radio button requiring only a single mouse click to change state. Would it be possible to have a Boolean Toggle on the canvas have this same behavior? Perhaps this option could be set on a per Toggle basis or in the preferences.The main issues I have with double clicking are pretty neatly summed up by…See More
Nov 12

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

Comment Wall (13 comments)

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

Join Grasshopper

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

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.

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service