<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1446433167259_3735">I think it makes more sense to do those substitutions on the level of the library <br></div><div id="yui_3_16_0_1_1446433167259_3736" dir="ltr">loading mechanism than in the GUI.<br></div><div id="yui_3_16_0_1_1446433167259_3828" dir="ltr"><br></div><div id="yui_3_16_0_1_1446433167259_3768" dir="ltr">In your example, what I would want is to put an abstraction called [repeat] <br></div><div id="yui_3_16_0_1_1446433167259_3904" dir="ltr">in the same directory as my patch.  Inside my [repeat] abstraction I'd have <br></div><div id="yui_3_16_0_1_1446433167259_4010" dir="ltr">a [num.repeat].  Then when I load the patch I would want Pd to load my <br></div><div id="yui_3_16_0_1_1446433167259_4114" dir="ltr">abstraction instead of loading any external by the same name.  That's a <br></div><div id="yui_3_16_0_1_1446433167259_4337" dir="ltr">much easier process because it doesn't require any changes to the original <br></div><div dir="ltr">patch.<br></div><div id="yui_3_16_0_1_1446433167259_4044" dir="ltr"><br></div><div id="yui_3_16_0_1_1446433167259_4079" dir="ltr">Pd doesn't work that way currently, but IIUC it would work this way using <br></div><div id="yui_3_16_0_1_1446433167259_4835" dir="ltr">IOhannes' recent revisions to the loader mechanism.</div><div id="yui_3_16_0_1_1446433167259_4834" dir="ltr"><br></div><div id="yui_3_16_0_1_1446433167259_4772" dir="ltr">For more complex cases maybe a massive search/replace is necessary, but <br></div><div id="yui_3_16_0_1_1446433167259_4773" dir="ltr">I'd still prefer your sed/awk approach to massive search/replace in a running <br></div><div id="yui_3_16_0_1_1446433167259_4774" dir="ltr">patch.  It's just way safer to substitute "foo" for "bar" when you know there <br></div><div id="yui_3_16_0_1_1446433167259_4775" dir="ltr">aren't side effects like memory allocation of associated objects, <br></div><div id="yui_3_16_0_1_1446433167259_4776" dir="ltr">binding-symbols, class search, socket traffic, GUI redrawing, maybe even <br></div><div id="yui_3_16_0_1_1446433167259_4777" dir="ltr">forgetting that audio was running the whole time, etc.</div><div id="yui_3_16_0_1_1446433167259_4783" dir="ltr"><br></div><div id="yui_3_16_0_1_1446433167259_4784" dir="ltr">-Jonathan<br> </div><div id="yui_3_16_0_1_1446433167259_3903" dir="ltr"><br></div><div id="yui_3_16_0_1_1446433167259_3657"><span></span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Sunday, November 1, 2015 5:10 PM, me.grimm <megrimm@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv3511392095"><div dir="ltr">Hello,<div><br></div><div>say i have [repeat] in older patches but now i want to substitute this, for example, for my own [num.repeat] vanilla abstraction without changing original patch. can this be done with gui-plugin?</div><div><br></div><div>i am noticing since moving from pdx that its quite a pain to replace once relied upon pdx objects with others that have same functions even with perl/sed scripts in tips_and_tricks.</div><div><br></div><div>if ability to substitute directly with plugin then custom user libs could draw from only needed objects from pdx based patches i was thinking....</div><div><br></div><div>cheers</div><div>m</div></div></div><br>_______________________________________________<br><a ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div></div></body></html>