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", and I can't set it after creation because there will be multiple copies of the abstraction present in a patch and I don't want them all to be set to the same "local" variable (kinda defeats the point). I can't use an external send/receive object because I'm using canvases, which don't have inlets or outlets.
Thanks,
-Ben
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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.
and I can't set it after creation because there will be multiple
you can: just connect(! with patch cords) the re-naming message to the object, and you are done. but you really shouldn't need it, see above
fgmsdr IOhannes
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.
and I can't set it after creation because there will be multiple
you can: just connect(! with patch cords) the re-naming message to the object, and you are done. but you really shouldn't need it, see above
I can't do it this way in my current patch because I am using canvas objects, and they don't have inlets with which to connect patch cords.
2010/3/26 Ben Baker-Smith bbakersmith@gmail.com
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.
how about $0-test-send instead of test-send-$0 ?
gr, Tim
and I can't set it after creation because there will be multiple
you can: just connect(! with patch cords) the re-naming message to the object, and you are done. but you really shouldn't need it, see above
I can't do it this way in my current patch because I am using canvas objects, and they don't have inlets with which to connect patch cords.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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