Changed in Vuo 2.0An event now only enters a subcomposition through the published input ports that it hit, not all published input ports.
When an event hits an input port of a subcomposition node, it travels into the subcomposition through the corresponding published input port.
When an event hits multiple input ports of the subcomposition node, it travels in through all of the corresponding published input ports simultaneously.
To illustrate, here’s a composition that uses a subcomposition node called Connect Recent Points to draw a series of connected line segments behind the mouse cursor as it moves. Below that is the Connect Recent Points subcomposition.
When an event hits the Add Point input port of the Connect Recent Points node (in the first composition above), it travels into the subcomposition (second composition above) through the AddPoint published input port. The event hits the Enqueue node and travels onward through the subcomposition.
You might be wondering about the Max Recent Points input port, which has no incoming events. We’ll talk more about ports with constant values in a moment, but for now just know that the constant data does enter the subcomposition through the MaxRecentPoints published input port and reach the Enqueue node.
Here’s a modification of the first composition above that allows the user to toggle between a short tail and a long tail by pressing any key.
Now events come in through the MaxRecentPoints published input port whenever the user presses a key and the AddPoint published input port whenever the user moves the mouse.