hi!
whether it is possible to get $0 of parent patch
(not passing it as a creation argument)?
or more abstract: can i get the creation args (include $0) of the parent patch?
Parent $0
hi!
whether it is possible to get $0 of parent patch
(not passing it as a creation argument)?
or more abstract: can i get the creation args (include $0) of the parent patch?
hopelessly microtonal
Without using creation arguments, I think the only way to do it would be
[initbang]
|
[f $0]
|
[subpatch]
Though there might be another way
question was how to make it easier than writing [mypatch $0 $1 ...]
but what you suggest - monstrously complex
hopelessly microtonal
The only way to get the $0 for a parent patch is via message passing. So [mypatch $0 ] would be the simplest method.
Is it possible to get the name of the parent patch? So an abstraction can get the name of its parent...a bit like [getdir]
I think I asked this a few years back and the response was a little sketchy. Things might have changed since then
boonier
GridFlow has objects that can get the parent $0 and patchname. I can't remember their exact names offhand, but there in the [gf/canvas_*] group of objects.
Hello, fellow PDites.
Good moment for me to contribute, given I'm the beneficiary of much great info on this forum. Thanks to all.
In pd-extended, iemlib has an object that works a treat:
parentdollarzero
thanx all
parentdollarzero would be exactly that i need, but it not works O_o
(pd-0.42.5-ext, winxp)
GridFlow too far from my goals.
hopelessly microtonal
mozz, try prefixing the object name with the library name, like this:
[iemlib/parentdollarzero]
FWIW, I'm on the same setup as yourself and it's working OK for me.
osc~
all libraries are loaded on startup.
parrentdollarzero loads but not works: i bang inlet but get nothing
hopelessly microtonal
Try placing the parentdollarzero object in a new patch, saving that, then creating an instance of that patch in another new patch. It's working for me. Here, I've attached a patch for you...
strange it works now
oh it's a symbol not float
thnx!
hopelessly microtonal
no probs!
Oops! Looks like something went wrong!