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
  • Luke 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

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 Sep 24, 2012

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 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
Anders Holden Deleuran replied to Newsum's discussion GHPython
"Hi Newsum,There are a couple of things to be aware of here:The Python component input and outputs are essentially variables living in the outer most scope of the script. These are also called global variables (because they can be accessed from…"
Apr 2
Anders Holden Deleuran replied to Jens Pedersen's discussion Springs in the group Kangaroo
"Hi Daniel,Those are some really great resources, thanks a bunch. Regarding this bit: "It would be interesting to hear if you think such a library would be useful, and how you'd want to use it..." I tend to do most of my Rhino/GH work…"
Mar 30
Anders Holden Deleuran replied to Friedrich Pei's discussion Using third party module in RhinoPython?
"It is indeed.You simply need to add a reference to the module directory and use the import statement (like with native modules). You can do this inside the script itself, or, using the standard Python script editor: 1) In Rhino type in the command…"
Mar 27
Anders Holden Deleuran replied to Miguel Vidal's discussion Global variables shared by different GH files
"RhinoPython has a dictionary called scriptcontext.sticky which may be used for something like this. It only "sticks" around for the current Rhino session though, but may be accessed from within any Python script (including…"
Mar 26
Mostapha Sadeghipour replied to Anders Holden Deleuran's discussion Best Practices for Input Model Geometry. in the group Ladybug
"Nice catch! The same happens for view and sunlight hour analysis. 3*Thank you! :)"
Mar 23
Anders Holden Deleuran replied to Danila Babko-Malyi's discussion using rhino commands in python
"Cool, glad it helped. If you ever do want to call a Rhino command you can use the rs.Command() function. This is not really something I would recommend though unless you absolutely have to (like say importing files etc). It is quite…"
Mar 22

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