Hi there:
Was just looking at the careGUI.pd and realized that there is no button to to load the existing preset .dat file. I have added a [bang] so that it opens a [openpanel] and then load the .dat file in [pool].
Also, when saving file in [careGUI], I realized that the file has to be saved with .dat extension, otherwise it won't work. Is this correct?
The patch is as below:
Cheers
CHUN
#N canvas 43 78 305 88 10; #X obj 2 15 cnv 15 300 60 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 35 30 bng 40 250 50 0 empty empty SAVE 0 -6 0 8 -24198 -1 -1 ; #X obj 122 28 bng 40 250 50 0 empty empty RESTORE 0 -6 0 8 -258699 -1 -1; #X obj 19 1 inlet; #X obj 218 28 bng 40 250 50 0 empty empty FILE 0 -6 0 8 -262131 -1 -1; #X obj 249 0 outlet; #X obj 263 47 bng 15 250 50 0 empty empty reset 0 -6 0 8 -250685 -1 -1; #X msg 260 67 reset; #X obj 90 43 bng 15 250 50 0 empty empty print 0 -6 0 8 -261689 -1 -1; #X msg 81 60 print; #N canvas 62 215 693 405 ____guts___ 0; #X obj 68 51 inlet; #X obj 227 43 inlet; #X obj 353 58 inlet; #X msg 77 85 save RRADICAL; #X msg 210 121 load RRADICAL; #X text 207 100 load/save file into/from pool by name; #X obj 196 147 t b a; #X text 11 131 set filename; #X obj 170 209 caretaker $1; #X obj 105 237 outlet; #X text 116 255 bang after restore; #X obj 472 54 inlet; #X msg 349 172 file $1; #X obj 351 139 savepanel; #X msg 350 242 savex bla.xml; #X msg 443 162 file $1; #X obj 443 139 openpanel; #X obj 407 56 inlet; #X obj 443 182 t b a; #X connect 0 0 3 0; #X connect 1 0 4 0; #X connect 2 0 13 0; #X connect 3 0 8 0; #X connect 4 0 6 0; #X connect 6 0 9 0; #X connect 6 1 8 0; #X connect 11 0 8 0; #X connect 12 0 8 0; #X connect 13 0 12 0; #X connect 14 0 8 0; #X connect 15 0 18 0; #X connect 16 0 15 0; #X connect 17 0 16 0; #X connect 18 0 4 0; #X connect 18 1 8 0; #X restore 64 0 pd ____guts___; #X obj 176 28 bng 40 250 50 0 empty empty OPEN 0 -6 0 8 -24198 -1 -1 ; #X connect 1 0 10 0; #X connect 2 0 10 1; #X connect 3 0 10 4; #X connect 4 0 10 2; #X connect 6 0 7 0; #X connect 7 0 10 4; #X connect 8 0 9 0; #X connect 9 0 10 4; #X connect 10 0 5 0; #X connect 11 0 10 3; #X coords 0 0 1 1 304 75 1;
Hallo, chun lee hat gesagt: // chun lee wrote:
Was just looking at the careGUI.pd and realized that there is no button to to load the existing preset .dat file. I have added a [bang] so that it opens a [openpanel] and then load the .dat file in [pool].
The way careGUI works, is that you first select a file to work on with "FILE", then you save (SAVE) or restore (LOAD) to this file. So it's two clicks to open a file with the current careGUI, but I like it better that way, because it then is just one click to save as well.
But that should not stop you or one else to create other caretakers (There already is another one called careOSC btw. which saves OSC-formatted messages). RRADical is just a toolbox with some suggested tools, but it is meant to be extended and customized.
Also, when saving file in [careGUI], I realized that the file has to be saved with .dat extension, otherwise it won't work. Is this correct?
I currently fight bad crashes here I need to find the reason for (probably some c++ compilation issue), but I'm quite sure, you can omit the .dat, as I remember, that I did this already. .dat is not hardcoded anywhere in RRADical.
Frank Barknecht _ ______footils.org__