SetPatch within SubPatches

hej,

when patching a thingie with SetPatch in a Sub(sub)patch this behaviour occured (have a look a the patch, plz).
when modifying a subpatch, all the subpatches with the same name change, which makes it a bit hard to let patches change dynamically…

don’t know, if this behaviour is desired, and if, whether there’s any workaround…

grz
woei

set_subpatch.zip (2.2 kB)

when modifying a subpatch, all the subpatches with the same name
change, which makes it a bit hard to let patches change dynamically…

this is the intended behaviour.

all patches with the same name share the same structure

therefore they always have the same connections and the same constants in their pins. (this is by design - what would happen if you press save on one of the instances?)

so if you change a constant or the structure in one subpatch it will instantly change in all other subpatches with the same name. in fact we found that a powerful feature, as you can work on the micro level in the same way as on the macro level.

one important thing to understand:
if you see different values in the different instances of one patch, this is only a consequence of the inputs having different values coming from the parent.

usually vvvv hides that behaviour, as changed input values are saved in the patch itself and in the parent.

so if you want to have different constants in the instances, you need to have these as inputs and set them in the parent patch. so the values are saved in the parent patch and are therefore part of the structure of that patch.

otherwise, if you want to have different graphs in the subpatches you need to use different names for your subpatches.