Grasshopper

algorithmic modeling for Rhino

vb script: changing the coordinate of a 3d point

Hey guys, 

I am doing a project on grasshopper for rhino, and I'm facing a problem with the VB script. 

the project is an interactive wall, that changes into a bench when the person comes near the wall (when the distance between the wall and the person is less than 10 for example), for now I did the structure (wall) and attached the points (that are forming the wall and the ones I want to move , in order for the wall to change into a bench)

This is where the VB script comes, I want it, only by moving the slider of the object (person) and by using an if statement, to change the coordinate y of certain points on the surface. 

So if there is a way to change the coordinates of a point using the if statement, I would be very thankful. 

p.s: I'm attaching the files 

Thanks in advance  

Views: 575

Replies to This Discussion

Are you sure a vb script is necessary for this? If statements can be effectively implemented with native grasshopper components. 

Also you seem to have forgotten to attach the files so we can take a look :)

Thank you for the replay. Is there another way to do it, only by using one slider ( the one representing the person  and the point will automatically change? 

thanks again 

Attachments:

And this is the rhino file

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service