$0, $1 and all other variables should be at the beginning of the name
of your variable, not the end. This is the same whether it's a send,
an array or anything else.
D.
On 3/26/10 5:22 PM, Ben Baker-Smith wrote:
I've tested this with toggle, bang, and canvas objects. If I put $0 in the send or receive properties everything looks fine until i close and re-open properties, then "test-send-$0" becomes "test-send-0" and "testreceive$0" becomes "testreceive0". At no point (before or after closing / re-opening properties) will the objects send or receive $0 properly.
On Fri, 2010-03-26 at 18:01 +0100, Derek Holzer wrote:
$0, $1 and all other variables should be at the beginning of the name
of your variable, not the end. This is the same whether it's a send,
an array or anything else.
Not anymore in recent versions of Pd, at least not in >= 0.42.
Roman
Fantastic, that did the trick. I'll keep my variables as prefixes from now on.
Though ideally the gui objects should handle variables in the same way as standard send and receive objects (and arrays), which can take variables at the beginning, end, or in the middle.
Thanks everyone!
On Fri, Mar 26, 2010 at 12:01 PM, Derek Holzer derek@umatic.nl wrote:
$0, $1 and all other variables should be at the beginning of the name of your variable, not the end. This is the same whether it's a send, an array or anything else.
D.
On 3/26/10 5:22 PM, Ben Baker-Smith wrote:
I've tested this with toggle, bang, and canvas objects. If I put $0 in the send or receive properties everything looks fine until i close and re-open properties, then "test-send-$0" becomes "test-send-0" and "testreceive$0" becomes "testreceive0". At no point (before or after closing / re-opening properties) will the objects send or receive $0 properly.
-- ::: derek holzer ::: http://macumbista.net ::: ---Oblique Strategy # 23: "Breathe more deeply"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ben Baker-Smith wrote:
Fantastic, that did the trick. I'll keep my variables as prefixes from now on.
Though ideally the gui objects should handle variables in the same way as standard send and receive objects (and arrays), which can take variables at the beginning, end, or in the middle.
i'm pretty sure they "can" - if they don't know about it... the problem only comes from the property editor (call it a bug) which eats the dollargs in order to prevent Pd and/or tcl to expand the $variables.
if you can set the sender/receiver names without the property editor, then you can also have "proper" dollarg expansion (you probably should not save the patch though...)
fgasdm IOhannes