Grasshopper

algorithmic modeling for Rhino

Hi, 

i have a question: I have a GH definition here with 2 C# Scripts (see attachment) 

The first one does not much more than scanning a folder for 3dm files and opens them. What i want is, that the second one runs for every loaded File. 

Right now it just not work at all. The idea was, that i change an output to true, and to let the other script work whenever it gets a true. 

Can anyone please tell me where i am wrong and how i can solve the problem?

Any Help would be just awesome!

PS.: this is just an example, in the next days i need to have a solution to load lots of files, do some magic with it (in grasshopper) and write some data out. so this would be just a great start!

Script2.c

script1.c

Views: 356

Attachments:

Replies to This Discussion

hmnn, well firstly you did not have the "go" input set to type hint bool. Also, in your code I don't see anything using the go input. It should be something like

if(go == true)

{

//run component again;

}

Hi, i updated the code, but i still cannot get it to work. The Problem seems to be, that the first component simply does not fire a TRUE to "go". It does it, but only one time when the script finished its work.

Is there any way to get the second script to start whenever a new rhino document was loaded???

Any help would be just awesome!

Maybe this just does not work at all...

is it somehow possible to have both of the script work parallel? 

- so changing the document with the one script and with the other to check wether the document has changed - and if so to run?

Is that possible? 

Please! Any Help ??

Ok, i am pretty shure that something like this would work with "events" 

can someone give me a short example how i would do something like: "when a new document is opened, do ...."

I have been reading now for hours and hours, but i just do not understand how to do that.. any help?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service