Ah, sorry I terribly misread your question! Ignore my last mail :-/
Passing arguments to subpatches is currently not possible. Generally, how would you distinguish between abstraction creation arguments and subpatch arguments? $1, $2, $3, inside a subpatch already refer to the enclosing abstraction's creation arguments. This means you would need a dedicated syntax (or a dedicated object) to access subpatch creation arguments. I don't see this happening, to be honest.
I'd say, if you need creation arguments, just use an abstraction ;-)
Christof
PS: internally, subpatches don't really have creation arguments at all. Instead they have a pointer to the canvas environment of the enclosing abstraction or root canvas.
On 16.08.2020 04:01, William Huston wrote:
Sorry, is this documented anywhere?
I see a -x option to the [clone] object, which works for abstractions only.
I am talking about a general way to send positional parameters into a subpatch similar to how I can pass parameters into an abstraction.
image.png
-- William Huston: WilliamAHuston@gmail.com mailto:WilliamAHuston@gmail.com Binghamton NY
*Public Service Mapping / Videography / Research / Education / Safety Advocacy* Blog http://WilliamAHuston.blogspot.com -- Facebook http://facebook.com/billhuston -- Twitter http://twitter.com/WilliamAHuston-- Youtube https://www.youtube.com/channel/UCGijK1amWOLglT3YeTyEBNQ?sub_congfirmation=1*-- Podcast Blog https://billhustonpodcast.blogspot.com/
*Document collections*: VirtualPipelines http://TinyURL.com/VirtualPipelines -- BHDCSDimockArchive http://bit.ly/BHDCSDimockArchive *Please support my work! -- *TinyURL.com/DonateToBillHuston http://TinyURL.com/DonateToBillHuston
**
On Sat, Aug 15, 2020 at 9:28 PM Christof Ressi <info@christofressi.com mailto:info@christofressi.com> wrote:
This would be a nice feature
Do you mean the "-x" flag? ;-) Christof On 16.08.2020 02:42, William Huston wrote:
What about this? [pd NAME IGNORED ... -p ARG1 ARG2...] This would be a nice feature, in that it would make subpatches work more like abstractions. Thanks, BH -- William Huston: WilliamAHuston@gmail.com <mailto:WilliamAHuston@gmail.com> Binghamton NY *Public Service Mapping / Videography / Research / Education / Safety Advocacy* Blog <http://WilliamAHuston.blogspot.com> -- Facebook <http://facebook.com/billhuston> -- Twitter <http://twitter.com/WilliamAHuston>-- Youtube <https://www.youtube.com/channel/UCGijK1amWOLglT3YeTyEBNQ?sub_congfirmation=1>*-- Podcast Blog <https://billhustonpodcast.blogspot.com/> * *Document collections*: VirtualPipelines <http://TinyURL.com/VirtualPipelines> -- BHDCSDimockArchive <http://bit.ly/BHDCSDimockArchive> *Please support my work! -- *TinyURL.com/DonateToBillHuston <http://TinyURL.com/DonateToBillHuston> ** _______________________________________________ Pd-dev mailing list Pd-dev@lists.iem.at <mailto:Pd-dev@lists.iem.at> https://lists.puredata.info/listinfo/pd-dev
_______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list