Getdir only outputs the directory in witch the parent patch is and not the parent patch name!
Tom
Frank Barknecht wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Thomas O Fredericks hat gesagt: // Thomas O Fredericks wrote:
I use a lot of VST~ and make custom programming for one shot installations. I want PD to remember what vsts I loaded and what program number was last selected. They have to be loaded as if they were actual PD objects. Automatic loading of a default state file just makes life simpler.
Well, why not just use a [loadbang] to load the state file.
Ah, sorry, I now see how this is related to your original question, where you wanted to save and reload using the name of the *parent* patch.
I see no other solution to that than to use "getdir" in the parent patch and pass that to the child through a message or as argument. The parent knows it's name, either by "getdir" or by hardcoding, so this should work.
However I still think, that relating patch filenames to state files is not The Right Thing, to me it just feels wrong. But I had this argument with Ben Bogart several times (remember, Ben?), so I can understand that people want to do it. I just think it's wrong. ;)
Ciao