Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5791

Timer up, Timer Down (w/ Interval control)

$
0
0

@Nick_Bruscia wrote:

Greetings, and sorry for the simple question. After a bunch of searching, I couldn’t quite solve it and I’m still in the early phases of learning C# …

I’d like the attached C# script to have the added functionality of an Interval input, allowing the count speed to be adjusted in ms – as in, for example, the attached Python component found here:

Currently, the script simply counts up to a max value, and counts back down to 0 when reached (and back again) - this is good, but I’d like to slow it down and speed it up without having to overshoot the max and divide the output.

This post has given me a clue as it relates to the above, but I’m a bit stumped on how to bring this into to attached C# component:

Timer_UpDown.gh (7.5 KB)
for reference: 191228_GHPython_Timer_01.gh (5.2 KB)

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5791

Trending Articles