Grasshopper

algorithmic modeling for Rhino

Emilio Morello
  • Male
  • Caselette, Piedmont
  • European Union
Share on Facebook
Share

Emilio Morello's Friends

  • Antonio Turiello
  • Arely Perez
  • Vito Losavio
  • Arturo Tedeschi
  • Riccardo Gatti
  • Paolo Cappelletto
  • Mirko V.
  • Elena
  • Arthur Mamou-Mani
  • Luca Ottaviani
  • Bruno Demasi
  • algosuk
  • giorgio gurioli
  • David Rutten

Emilio Morello's Groups

Emilio Morello's Discussions

Python: duplicate RhinoCommon structure
8 Replies

Hi all,sorry if it's a stupid question ... I'm confused.Is there a clean, generic way to duplicate RhinoCommon structure instances ?In particular I'm talking about Rhino.Geometry structures.Since in…Continue

Started this discussion. Last reply by Emilio Morello Nov 12, 2013.

Baking a GH_GeometryGroup object
8 Replies

HiI'm trying to bake a group by GH_GeometryGroup.BakeGeometry() and it works.But I don't know how to get the index of the just created Rhino group.Also, how does the obj_guid argument work ?I set it…Continue

Started this discussion. Last reply by Emilio Morello Sep 24, 2013.

RhinoApp.RunScript() freezes the canvas
3 Replies

HiI have a component that runs a Rhino command byRhinoApp.RunScript()The Rhino command works fine, but after running it, I can no more select things on the canvas. I only can zoom in & out, bot…Continue

Started this discussion. Last reply by Emilio Morello Sep 2, 2013.

Optional geometry input parameter ?
2 Replies

Hi,I have a component that (also) has a Guid input parameter and a Geometry input parameter, either one of them must be used.But if I leave one of them not linked, a warning pops up and stops the…Continue

Started this discussion. Last reply by Emilio Morello Aug 22, 2013.

 

Emilio Morello's Page

Latest Activity

Arpan Bakshi left a comment for Emilio Morello
"GhPython Workshop coming up this month. Tool developer Chris Mackey is teaching a live webinar titled - Making Your Own Python Components. More information and registration…"
Oct 10, 2016
Emilio Morello replied to Emilio Morello's discussion Objects by layer ? in the group Human
"Thanks Andrew. ... I've just discovered DPipeline ... works perfectly. Thanks again"
Nov 28, 2015
Andrew Heumann replied to Emilio Morello's discussion Objects by layer ? in the group Human
"I think what you want is the "dynamic pipeline" component - you can specify the layer you want to get objects from (and the type of object you want, or "any") and it will automatically get those objects."
Nov 28, 2015
Emilio Morello added a discussion to the group Human
Thumbnail

Objects by layer ?

Hi Andrew ( and all )I have to admit that I'm not a real GH user ... and I'm trying ( again ... ) to find a way to use GH in my work.I organize thing in Rhino by layers and I'm thinking about using GH to be able to 'rebuild' layers (I mean the objects in the layers) automatically starting from objects on other layers.Then I need to get the objects contained in a particular layer.( That is, in Rhino scripting  ObjectsByLayer() )Is there a way in Human to do that ? ( I was not able to find it ...…See More
Nov 28, 2015
Michael Buckley replied to Emilio Morello's discussion 4D cube
"been working on this topic with a partner, hoping to input more than just a hypercube. i attached an earlier study with just a hypercube, we're hoping to define a hypercone now but struggling with it"
Mar 3, 2014
Tree replied to Emilio Morello's discussion Replacing a Rhino object's Geometry.
"David, Problem solved - it was just a REALLY stupid mistake on my part..."
Feb 19, 2014
Tree replied to Emilio Morello's discussion Replacing a Rhino object's Geometry.
"David, It would be very helpful to see a simple example of this in code if possible.  I'm connecting this issue to the thread stated a couple of days ago because I'm still not finding any success with selecting an original instance of…"
Feb 19, 2014
Emilio Morello replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"Hi David, please correct me if I'm wrong. I think that copy by assignment for structures works fine in VB and C#, but I just learned (the hard way ...) that Python works differently. It seems that structure instances are copied by reference,…"
Nov 12, 2013
Emilio Morello replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"Hi Anders, nice idea ! Works fine.  :) Thanks a lot !"
Nov 12, 2013
Florian Frank replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"That's awesome...these kind of things are the reason people should do python instead of vb/c# ;-) Thanks Anders"
Nov 12, 2013
David Rutten replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"Emilio, if oldarc is of type Rhino.Geometry.Arc, you can just assign it directly and a copy will be made: at this point newArc will still have the old radius. -- David Rutten david@mcneel.com Tirol, Austria"
Nov 12, 2013
Emilio Morello replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"Hi Florian, Many thanks for your clear explanation ! Indeed I copied the arc by an instruction like:     newarc = Rhino.Geometry.ArcCurve( oldarc ).Arc I'm glad to see that it's also what you suggest.  :)   (…"
Nov 12, 2013
Anders Holden Deleuran replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"I suppose that a generic Python specific approach would be to use the copy module. See attached file.."
Nov 12, 2013
Florian Frank replied to Emilio Morello's discussion Python: duplicate RhinoCommon structure
"Hi Emilio, this is not a stupid question. You're talking about a so called deep-copy of an object. You can call it a copy-constructor but Point3d and Plane are an Exception for this type of constructors. All GeometryBase based…"
Nov 12, 2013
Emilio Morello posted a discussion

Python: duplicate RhinoCommon structure

Hi all,sorry if it's a stupid question ... I'm confused.Is there a clean, generic way to duplicate RhinoCommon structure instances ?In particular I'm talking about Rhino.Geometry structures.Since in Python assigning a structure instance to a variable does not create a new instance, I'm looking for an easy way to duplicate that instance.Some structures have what I might call copy-constructors:I can build a new Point3d from another Point3d, same for Plane etc ...Some other structures lack that.…See More
Nov 12, 2013
Emilio Morello replied to Jonathan Hermann's discussion Python: How to make a copy of a list of points
"Hi, this seems to work for RhinoCommon Point3d objects newpoints = [ Rhino.Geometry.Point3d( p ) for p in oldpoints ]"
Nov 10, 2013

Profile Information

Company, School, or Organization
Hobbyist

Emilio Morello's Photos

Loading…
  • Add Photos
  • View All

Comment Wall (1 comment)

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

Join Grasshopper

At 7:26am on October 10, 2016, Arpan Bakshi said…

GhPython Workshop coming up this month. Tool developer Chris Mackey is teaching a live webinar titled - Making Your Own Python Components. More information and registration at https://attendee.gototraining.com/42b11/register/4476111114579892225

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service