Grasshopper

algorithmic modeling for Rhino

How to set up Timer as input for a component (using Grasshopper SDK & Rhinocommon in Visual Studio)?

Hi there, 

 

Can anyone give me some suggestions on how to create a component with a timer as an input source? I like to try creating a component that will implement Boids behavior with some customization.

 

My current procedure is to create a global variable that holds the list of values for later updates in a C# component. Now I would like to encapsulate all the libraries I am using into a customized component for Grasshopper. The question is how can I set up a component that takes a timer as input to trigger the updates. Any hints/suggestion/strategies are really appreciated.

 

Thanks you all!

-Javier

 

Views: 7599

Replies to This Discussion

maybe this could help you....
Attachments:

 

Thanks for your reply. This is however not what I am asking here. Sorry for my poor English if I misunderstood you. 

 

I am using Rhinocommon and Grasshopper SDK to create a customized component in Visual Studio. My question is how can I create this component that can accept a Timer as an input. What this component should do is to update certain values that will evolve along the time.

 

For example, when I initiate a object of GH_Component in C#, I can use GH_InputParamManager. RegisterInputParams() to create numbers of input parameters. Yet it seems like there is no physical parameters needed for a Timer in a component. All you have to do is to create this semi-transparent link beteen timer and the component. How can I then set up the updating mechanism in C# when a Timer is attached? Is this task somehow clear to anyone? 

 

 

Thanks again for your helps.

-j

 

np ;] 

i cant help you with it :/

Hi Javier,

Check out an animation sample file made by Mr Piacentino here

http://www.grasshopper3d.com/forum/topics/help-about-timer

is that what ou need?

I will try that first. Thanks for your reply.

 

-j

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service