I would appreciate any help. I am looking for a script in GhPython that counts the values in the list every second. The list starts always with zero and ends with “y”. I want the script to count values every second, as soon as I push the start button. For example in the first second the output is 0, at the second = 1 and so on. As soon as the value equals the “y” the GhPython script should stop counting and stay by the “y”. With the new button press the new sequence should go.
Thank you one more time for your help! I wanted to ask you, if it is possible to rewrite your script, so you can start the process with a button and it will reset itselfs at the end automatically. I also need a boolean output “true of false” during the script´s work, so when you press the button the counter goes and the boolean output is true.
Thanks one more time! I am sorry, if I seem to demanding and I will understand, if you won´t have any time for it :).
I am not so versed with python, so I would apricate every help
I’m not sure why one would use a Button for this (which has two states i.e. press down and release). Both features would be solved by still using a Boolean Toggle and a slight modification to the script:
I am looking for a starter for a sequence: I have n models which I want to perform FE-Analysis on. I gather the needed information of each model with a “Data recorded” to evaluate all of them later and find the “best” one. I can´t do FE-Analysis at all the models at once, because there thousands of them.
So I tried to use your script and rewrite it so that sequence starts with a button press and goes from zero to target-value, resets itselfs and then stops. I only need one cycle. But I failed to rewrite.
Your scrict from the prior post would be perfect if it was only one cycle, which could be started by the boolean or a button.
Thanks so much for your help in advance! I don´t want to be too persuasive and will understand if you won´t have any time for it
Well yes. One of the two methods used to trigger the GHPython component update is ScheduleSolution. So one would have to study why two components would get “entangled” the way you’re describing.