Hello! I start with Vuo and I try Video Tutorials. I have problem with the 5th tutorial, a Vuo Composition that Count...

I can't increment by 1 like the example, but the result is 1, 3, 6, 10, 15, 21, 28, 36, 45,... each second

Here a screenshot of my test: screenshot Do you know why?

Comments

@JérômeLanon, sorry for the

jstrecker's picture
Submitted by

JérômeLanon, sorry for the confusion. We recently changed the Fire Periodically node and forgot to update the tutorial.

What is happening in the tutorial video is that the Fire Periodically node outputs an event every 1 second, and each time the event hits the Count node's Increment port, the count increments by 1 (because the Increment port value is 1). So the resulting count is 1, 2, 3, ...

We changed the Fire Periodically node in Vuo 1.2.4. Whereas before the Fired port would output just an event, now it outputs an event plus data — the seconds elapsed since the composition started. In your composition, the Fired port outputs the number 1, then the number 2, then the number 3, etc. (You can see this by clicking on the Fired port to open its popover.) Each of those numbers hits the Count node's Increment port. Now, instead of incrementing the count by 1, it increments the count by that number. So the resulting count is 1 (=0+1), 3 (=1+2), 6 (=3+3), 10 (=6+4), ...

Thanks for alerting us that the tutorial is out of date. We'll post a correction on the tutorial page.

P.S. — Here are two

jstrecker's picture
Submitted by

P.S. — Here are two compositions for Vuo 1.2.4 that are equivalent to the one in the tutorial.

The composition above looks the same as the one in the tutorial, but you have to do something a little different to create it. When you connect the cable from the Fire Periodically node's Fired port to the Count node's Count port, you have to hold down the Option key to change the cable from data+event (thicker cable) to event-only (thinner cable). Notice that the 1 is still visible in the Increment port, unlike in your composition. That's because the event-only cable transmits only the event from the Fired port, not the data. The Increment port keeps its 1 value instead of using the number from the Fired port.

This composition is a shortcut now possible in Vuo 1.2.4. Since the Fire Periodically node already counts up, you don't even need the Count node. This composition sends the number from the Fire Periodically node's Fired port directly to the Make Text Layer node's Text input port.

(Well, technically, the number from the Fired port actually goes through the Value -> Summary type-converter node, which converts the number to text, and it is the text that goes into the Make Text Layer node's Text input port.)