Posted: 19 Jul 2010, 02:20
Id like to make a subpatch that use IML locally to set some named module values. (an encoder)
ie in the subpatch there is a module like a knob and it's named 'POT'. so i use 'set_target_patch sender_patch', to set it's value . and it's ok.
now i wanna go up to parent patch, duplicate this subpatch to get more pots. I was thinking that renaming differently the subpatchs, would
make the item activate when concerned, as iml trig locally a "set_target_sender', so according to it's name, but if i move one of all pots, only one will move ie, the second, and whatever wich one i move it will move the second, the changing target patch doesn't operate, but i can see it changing in the console, i don't catch ..
ie
Set_target_patch A
Set Value POT 1 1
Set_target_patch B
Set Value POT 1 1
but only /B/Pot 1 1 will move, even if i move the one from subpatch A.
I ve notice that all subpatch clones (renamed) access so same locally named item, ie 'POT',
but if I change each names of pots, then it work. but it implies going to the script and renaming items on
each creations,subpatch. i wished there could be a solution using patch selection by it's name, i must miss something..
don't know if im clear, if some see what i mean.. in other wordz
is it possible to make some clones subpatches that use iml locally with same named inside items, if thoses subpatchs are then named differently, or is there something special to do? i don't manage. arf
ive made a very simple patch example of what i don't understand:
dlike each button reset each concerned fader:
the patch here
ie in the subpatch there is a module like a knob and it's named 'POT'. so i use 'set_target_patch sender_patch', to set it's value . and it's ok.
now i wanna go up to parent patch, duplicate this subpatch to get more pots. I was thinking that renaming differently the subpatchs, would
make the item activate when concerned, as iml trig locally a "set_target_sender', so according to it's name, but if i move one of all pots, only one will move ie, the second, and whatever wich one i move it will move the second, the changing target patch doesn't operate, but i can see it changing in the console, i don't catch ..
ie
Set_target_patch A
Set Value POT 1 1
Set_target_patch B
Set Value POT 1 1
but only /B/Pot 1 1 will move, even if i move the one from subpatch A.
I ve notice that all subpatch clones (renamed) access so same locally named item, ie 'POT',
but if I change each names of pots, then it work. but it implies going to the script and renaming items on
each creations,subpatch. i wished there could be a solution using patch selection by it's name, i must miss something..
don't know if im clear, if some see what i mean.. in other wordz
is it possible to make some clones subpatches that use iml locally with same named inside items, if thoses subpatchs are then named differently, or is there something special to do? i don't manage. arf
ive made a very simple patch example of what i don't understand:
dlike each button reset each concerned fader:
the patch here