Grasshopper

algorithmic modeling for Rhino

Hey

I am having a problem with the script functions component F(X), i want to make a function which give out planar curves from line-like. So from another threat i got that the function should be something lige Contains(x,"Planar") but i tried all kind of of way to make. Is their any place on the web where you can find example on made functions ? 

Views: 6608

Replies to This Discussion

precise, why dont it work for me ?

can u post the function ?

A few things spring to mind.

  • The Function should not include the "F=" just:

contains(x, "Planar")

  • It is case sensitive "planar" is not the same as "Planar"
  • It must be a string input to x i.e. the panel output not the Crv output.

In the Expression Editor (accessed from the context menu) in the top right hand corner is a 'button' that looks like f:N->R click this to get a list of functions that you can use.

thx for the replay, but its still weird i cant get it to work with the above. I keep getting the error:

Syntax error: Wrong type of arguments for Function Contains

i have the latest grasshopper build and all, and i get the error before i make any wire to x

can you post the file containing your error?

sure, but i dont think it say much. I used the plugin chameleon to take a revit file into grasshopper where i use the direction of the sun to create sunshaders.

stupid question could it be that i need to download something besides grasshopper, like windows assembly something.. something..

Attachments:

You Fx component works fine.

However, I don't think you are connecting it up correctly, but I couldn't tell because you didn't have it connected.

The arguments must be strings not the curves themselves.

Bingo, i allways thought it was me fx which was the problem since i got the error in the expression editor. And it seems quite clear now, dunno why i didnt thought of it.

thanks hope i can repay u one day

Good. Someday, and that day may never come, I'll call upon you to do a service for me. But until that day – accept this justice as a gift on my daughter's wedding day.

I've used the contain function perviously for similar purposes (sorting curve-types).

 

What I am having difficulty with now...i was hoping to sort through lists of points in order to compare points (list x contains points from list y).  I guess the contain function does not take points as both arguments?

 

I realize I can do this with the set components, but I was hoping to format the output a little differently. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service