Grasshopper

generative modeling for Rhino

Anders Holden Deleuran
  • Male
  • Stockholm, Sweden
  • Sweden
Share on Facebook
Share Twitter

Anders Holden Deleuran's Friends

  • CITA
  • Henrik Leander Evers
  • Mostapha Sadeghipour
  • Miguel Rus
  • Toussaint Jimenez Rojas
  • djordje
  • Ian Huff
  • hamia Aghaiemeybodi
  • Jeg
  • Daniel Davis
  • Aron Fidjeland
  • Jens Pedersen
  • Gregory Epps
  • Pep Tornabell
  • Lucas Epp

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Rhino.Display.CustomDisplay and event handling using Python
15 Replies

Hi All,Following David's example in this…Continue

Tags: Python, CustomDisplay

Started this discussion. Last reply by Anders Holden Deleuran Nov 16, 2012.

Draw Mesh Edges Inconsistency
1 Reply

Hi,I have noticed that toggling "Draw Mesh Edges" does not always seem to work with certain components (i.e. turning them on or off will not actually do that). This appears to be particularly…Continue

Tags: Component, Python, Edges, Mesh, Draw

Started this discussion. Last reply by Anders Holden Deleuran Jun 11.

Reparameterize a curve using Python?
6 Replies

Would anyone know if there is a Python function for reparameterizing a curve (setting its domain to (0,1))? I have looked in both the RhinoScript and RhinoCommon documentation with no luck. I'm still…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 28, 2012.

Python Script Editor - Keyboard Shortcuts?
4 Replies

Hi All,As the title says. Any handy keyboard shortcuts available in the Python component script editor? In particular, a way of executing the script without having to get your hands off the keyboard…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 13, 2012.

 

Anders Holden Deleuran's Page

Latest Activity

Anders Holden Deleuran replied to Peter Schmidt's discussion Offset Surface Error
"Hi Peter, As far as I can tell the Rhino _OffsetSrf command is not yet implemented in RhinoCommon (see this). The only method I could find was Brep.CreateFromOffsetFace (see attached file for example) which offsets the individual brep…"
yesterday
Anders Holden Deleuran replied to Devin Jernigan's discussion Using the topology functions and editing a mesh's topology
"Could you post an example of a mesh which displays this behaviour? "
Jun 12
Anders Holden Deleuran commented on David Rutten's video
Thumbnail

Tile UI

"Just updated to 0.9.0056 and thought I would chime in here. When I open my GH it now looks like this: As you can see I run a pretty minimal GUI and a tight ship when it comes to file names. The MRU kinda gets in the way of both these workflow…"
Jun 10
Anders Holden Deleuran replied to Garrett Milliron's discussion Installing modules
"I have not tried this myself, but check out Steve's explanation here. Unfortunately it seems that there is still no 64bit version of Numpy and Scipy yet though.."
May 24
Anders Holden Deleuran replied to Garrett Milliron's discussion Installing modules
"Adding to what Mostapha said, you can also add module references using the Rhino Python editor. These references will carry over into the Python Grasshopper component. Also, note that not all Python modules are supported by IronPython (which is the…"
May 24
Anders Holden Deleuran replied to Thiru Manickam's discussion iterate a tree in python
"Sounds like you are probably not importing the Grasshopper .dll assembly, or, that your code expects only the Grasshopper.DataTree class to be imported under the variable name "tree". See this reply over on the Rhino.Python forum for…"
May 23
Anders Holden Deleuran replied to Timur's discussion How to make computer recognize .gh files (aka bring back .gh icons)?
"Hi David,  At some point I accidentally set .gha files to open using notepad: Not that it is a big problem, but if you're already fiddling with the GrasshopperRegisterFileExtensions command would you mind adding…"
May 1
Anders Holden Deleuran replied to Tyson Hosmer's discussion Old Python Components
"Cool, glad you didn't get any pee on your rug ;)"
Apr 29
Anders Holden Deleuran replied to Tyson Hosmer's discussion Old Python Components
"Try right-clicking the "code" input parameter and copy-pasting the content. This has previously worked for me.."
Apr 26
Anders Holden Deleuran replied to Junichiro Horikawa's discussion Use ObjectsByLayer() in python script to output geometries in layers as grasshopper object
"Hi Junichiro, check out the attached files. You'll probably want to look up the "coerce" functions in the RhinoScriptsyntax documentation if you want to learn more about how to deal with GUIDs coming from the Rhino document. Hope that…"
Apr 24
Anders Holden Deleuran replied to Elliot Glassman's discussion Incremental Addition of Values in List
"No worries. I just updated the file to demonstrate how to write this as a function as well as the Python concept of "unpacking". Also note how I stick to lower-case variable names for everything except the input/output parameters…"
Apr 19
Anders Holden Deleuran replied to Elliot Glassman's discussion Incremental Addition of Values in List
"Is in: Similar functionality to the mass-addition component, but with a conditional statement telling it to stop adding when a certain numeric value has been reached?"
Apr 19
Anders Holden Deleuran replied to Stan Carroll's discussion GH component / Python-Rhino script equivalent list?
"That's right. You can find the documentation for the Python random module here. The function I was using is just the most basic one. Have fun :)"
Apr 18
Anders Holden Deleuran replied to hurriarc's discussion a Rhinoscript method is not working in GhPython
"Hi Djordje, For some reason I couldn't reply directly to your post. Anyhow, you can set the script context directly in the script itself like so:import scriptcontext as sc# Set the script context to the current Rhino docsc.doc =…"
Apr 18
Anders Holden Deleuran replied to Stan Carroll's discussion GH component / Python-Rhino script equivalent list?
"Hi Stan,A list of one-to-one "Python function <-> Grasshopper component" equivalents does not exist. That said, as far as I understand, most Grasshopper components now implement classes from the RhinoCommon…"
Apr 18
Anders Holden Deleuran replied to perdo tred's discussion all rhino commands on grasshopper?
"Adding to that, note that not all Rhino commands are available via RhinoCommon (yet!)."
Apr 17

Profile Information

Company, School, or Organization
Aedas R&D
Web or Blog
http://www.andersholdendeleuran.com

Comment Wall (6 comments)

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

Join Grasshopper

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

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service