Grasshopper

algorithmic modeling for Rhino

Hello,

the error appears after closing the document or opening it in another document.

I checked the code and made a picture left side is the copied one and the right side the original.

Anybody any idea?

Thanks in advance!

Views: 455

Attachments:

Replies to This Discussion

You never instantiate a variable named planarBrep in the script or as an input parameter. In other words, it does not exist. You might have experienced what I like to refer to as phantom variables (see more here).

Ou, thanks, Anders, and i already thought there was leprechaun in my computer manipulating me:)

I think it is exactly what happened.

I tiried to join two components i have in python and then the error occurs.

Maybe you (or anybody else) ave/has the time to fix this. I think i am already close and i really like to know how to do this.

Thanks for the hint with the phantoms( i think in long time i want to be able use the 1.way giulio mentioned, but at this moment dont relly know how to do it)

Regards!

Attachments:

No worries. I'm getting the same error as in your first file (i.e. planarBrep does not exist) with the new file:

However, the error you are getting is that the type (i.e. ArcCurve) does not have a method or property called Faces (I'm assuming you might be trying to get to the faces of a Brep her). Basically, it's a bit hard to debug/decipher your component without being able to reproduce your results. It would also help alot if you added comments to your code/definition explaining the logic of your algorithm (basically describe what should happen and how you see this as occurring).

Hi Anders,

i want to poulate a Brep(like in pic above) with random points. Using 2 Python components i archieved it but combinied it wont work.

i will post the combinied file as well.

And yes, sorry for not commenting the file!

the logic is make brep

get domains

get borders

put points

check if on surface

append points

thanks for your time!

Attachments:

You forgot to internalize the input curves and you had some redundant/meaningless code in there. Think I got it working the way you wanted though, see attached :)

Attachments:

Thanks Anders!

That is exactly what i wanted.

Yes i thought there was unnecessary code.I still feel like creating Frankensteins with three arm, one leg and without brain:)

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