I'm am trying to figure out if there's a way to automatically rename a set of abstractions, ie. I would want [abstraction 1], [abstraction 2], and [abstraction 3] to be renamed to [abstraction 11], [abstraction 12], and [abstraction 13] with just one click of the mouse. This is because I want to open up a second instance of my patch without "cross contamination" of data. Maybe there's a completely different way of going about this that I'm unaware of, any help would be appreciated.
Cheers, Ryan
On 08/06/10 16:24, Ryan Trigg wrote:
I'm am trying to figure out if there's a way to automatically rename a set of abstractions, ie. I would want [abstraction 1], [abstraction 2], and [abstraction 3] to be renamed to [abstraction 11], [abstraction 12], and [abstraction 13] with just one click of the mouse. This is because I want to open up a second instance of my patch without "cross contamination" of data. Maybe there's a completely different way of going about this that I'm unaware of, any help would be appreciated.
If your patch used [abstraction $0-1] [abstraction $0-2] etc, there would be no risk of conflicts (*). But then maybe you could just use $0 inside the [abstraction] itself: $0 is a unique number for each loaded file.
http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s6.5
(*) but note: 1 and $0 are numbers, while $0-1 is a symbol
Use dynamic patching. See in help > browser > manuals > Pd-msg. However, i don't understand 'cross contamination' of data (between two instances of Pd ?). Can you send us an example ? ++
Jack
Le mardi 08 juin 2010 à 08:24 -0700, Ryan Trigg a écrit :
I'm am trying to figure out if there's a way to automatically rename a set of abstractions, ie. I would want [abstraction 1], [abstraction 2], and [abstraction 3] to be renamed to [abstraction 11], [abstraction 12], and [abstraction 13] with just one click of the mouse. This is because I want to open up a second instance of my patch without "cross contamination" of data. Maybe there's a completely different way of going about this that I'm unaware of, any help would be appreciated.
Cheers, Ryan _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Ryan,
On Tue, Jun 08, 2010 at 08:24:18AM -0700, Ryan Trigg wrote:
I'm am trying to figure out if there's a way to automatically rename a set of abstractions, ie. I would want [abstraction 1], [abstraction 2], and [abstraction 3] to be renamed to [abstraction 11], [abstraction 12], and [abstraction 13] with just one click of the mouse. This is because I want to open up a second instance of my patch without "cross contamination" of data. Maybe there's a completely different way of going about this that I'm unaware of, any help would be appreciated.
Maybe you can start with [abstraction $0-1] and [abstraction $0-2] instead? Or with [abstraction $0 1] and so on. Then if your abstractions are coded in a way that takes $0 into account, you could just keep everything the way it is, because Pd automatically assigns a unique value to $0 in each new patch.
Frank