On Fri, 2010-03-26 at 11:22 -0500, Ben Baker-Smith wrote:
Ben Baker-Smith wrote:
Hello,
Is there a way to use local variables ($0) in GUI send-symbol / receive-symbol properties? If I just put in $0 it interprets it as "0",
this is new to me; i have been using $0 in gui-objects for ages.
Not sure what the issue is then. I'm using Pd-Extended 0.41.4 on Mac OS 10.4.11 (PPC), at the moment.
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.
I've got the same behaviour and I even haven't noticed it, since I've always put the $0 as the prefix, not as the suffix. Try $0testreceive, which should work.
In older Pd versions you weren't allowed to put dollar variables in the middle or at the end of symbols, but only at the beginning. This was changed to allow dollar variables at any place and also to have even more than one dollar variable in one symbol. It seems, that it is not working properly in the iemguis. any other dollar variable than $0 seems to work at the end. Also $0 works at the end, if you use # instead: testreceive#0. I think, this is a bug.
Roman