Grasshopper

algorithmic modeling for Rhino

Hello.

it is possible to create a custom component like the vb script component or c# one?

for example if i want to create a custom component that make an if statement and so it is make of an

if () then

 A = false

else

 B = true

end if

with the condition inside the () that is leaved blank. Can i add this component to grasshopper and make it editable?

thanks

Views: 445

Replies to This Discussion

Hi Luca,

I'm afraid I don't quite follow. You can make custom components using Visual Studio. You can make them respond to double-clicks and show a custom user interface (like the VB and C# components). You can completely control how the component logic works, i.e. what data it 'eats' and what data it outputs.

What you cannot do is write a conditional statement without a condition. if () then is a logically empty statement. You need to evaluate something in order to choose between left and right.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service