Grasshopper

algorithmic modeling for Rhino

Hi

Trying to "pack" a huge definition into couple of ghpython components and having a difficulties.

In this simple example I've done offset curve and afterwards want to tween offset curve with input curve...

As you can see offset works just fine but tween gives me null :(

What should I do? Spent about half a day trying to figure this out :/

I'd highly appreciate help with this.

Views: 1329

Attachments:

Replies to This Discussion

Thank you Marcus

rhinoscriptsyntax is somewhat different in the meaning "you can't use it as a ghcomp input"? In that case wouldn't I get runtime error?

OK Marcus you've already solved it in another post ;)

rs.coercecurve did the trick

Note that the RhinoCommon Curve class has three tween methods (A,B,C). Not sure if these are the same methods the Grasshopper component implement. Only noticed these methods after writing my own, doh!


Yes I've noticed that too :/ tried only 1 last night but wasn't happy with result(for the time being used offset instead)

Now having fun with offsetting array of curves...

actually CIRCLES to be very precise ;)

"Runtime error (ArgumentTypeException): expected Curve, got Circle

Traceback:
line 57, in script"

Oh well

Seems to work quite fast with circles for me (see attached, remember to cast to Curve, either on the input parameter or in the script itself): 

Attachments:

Looks good I'll try again later on.

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