Grasshopper

algorithmic modeling for Rhino

Questions on new python component_object reference not set to an instance of an object

Hi,

 

I have been working on the new python component inside grasshopper 0.8.0010 and the latest build of rhino 5.0. For the sake of time, I am using rhinoscript in the component and I am doing a surfaceContour on a simple surface. All the inputs have been successfully collected using other grasshopper component and I want the coutour curves show up in the output of this python component.

 

I want the resultant curves stayed in grasshopper rather than the viewport of the rhino. I've set the mode to "in ghdoc variable", but I always get the error "object reference not set to an instance of an object." 

 

Could you tell me what should I do to fix this?

 

The snapshots and files are included in the attachment.

 

Many thanks!

 

Jerome

Views: 515

Attachments:

Replies to This Discussion

Hi Jerome,

the script works just as you wrote it, but you need to be sure to have

  • the last version of Rhino 5 (2011 May 18)
  • the last version of GhPython (0.4.1.1)

We are updating GhPython frequently to fix any bugs that are found.

Also, to have a little more error-proof component, you need to check to have two valid points and a valid surface as input, and you can directly use the ghdoc variable to set results.

- Giulio
______________
giulio@mcneel.com
McNeel Europe

Attachments:

Yeah, when I downloaded the latest version, everything works!

Thank you!

 

Jerome

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service