Send an EX9 layer from a subpatch

Say I have (for simplicity’s sake) a patch that simply creates a Quad when I send a value of 1 to it. Now if I make it a subpatch, the inputs are fine and dandy but I have no way of getting any sort of layer to a renderer. How can I achieve this? Ideally I would like an output pin on the subpatch so I can connect it to a group or a renderer.

Say I have (for simplicity’s sake) a patch that simply creates a Quad when I send a value of 1 to it. Now if I make it a subpatch, the inputs are fine and dandy but I have no way of getting any sort of layer to a renderer. How can I achieve this? Ideally I would like an output pin on the subpatch so I can connect it to a group or a renderer.

*A renderer in the parent patch, I mean.

use IOBox (Node)

-sunep

for creating input and output pin in a subpatch you must always use ioboxes (value, color, node, string etc), and you must give to the iobox a descriptive name. the fast way to do what you need is to doubleclick with right mouse button in an empty place of subpatch, select node from the menu, the select it and press ctrl+i and give it a name.
note that if you don’t attach it to nothing inside the subpatch, when you look your subpatch from outside you see an input and an output pin with that name. it is because vvvv don’t know if you want to use it as a input or output.

or use global variable via S and R nodes:
create a S node, give it a name to the value will send on all the system
create somewhere else a R node, and choose the value to receive

this allow to take same data from a subpatch without connecting too much

be aware that R node need to be looked carefully as a little bug may make it forget on close the variable you want it to listen and affected on first time/ this little bug occures only on first affectation