pattrforward and parent patcher

Mar 18, 2006 at 9:45am

pattrforward and parent patcher

I tried to send a message to the parent patcher with inx. My attempt
was, to directly communicate with the thispatcher object of the parent
without needing it.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 179 170 134 196617 script to the parent pacher;
#P newex 179 196 67 196617 prepend inx;
#P newex 179 219 116 196617 pattrforward parent::;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P window clipboard copycount 3;

but it doesn’t work. Is my synthax wrong, or isn’t it possible at all?
I’d like to talk to the thispatcher of a parent without the need of
actually instantiating a thispatcher object and giving it a name.

The concrete issue is a defocusing. Thus if there would be a way to
defocus with a scripting command, this would make me happy as well.
Though the possibility to talk to a parent patcher directly is on my
wishlist for a long time.

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#24949
Mar 18, 2006 at 11:11pm

Sorry, there’s currently no way to do this from the toplevel patcher
(your patch works in a subpatch, although the name has to be
parent::somebox).

The pattrforward object speaks to boxes, and your parent patcher, in
this case, has none. Because I was so mean to you yesterday, though,
I’ve added this feature for the next release of the object. The name of
the pattrforward object’s containing patcher will be “this”. And “this”
will work at any patcher level.

Until then, you’ll need to talk to the patcher through a thispatcher
object or use JavaScript to do this.

jb

#72836
Mar 19, 2006 at 1:49pm

Jeremy Bernstein wrote:
> Because I was so mean to you yesterday, though,

didn’t realise it yet … ;-)

> I’ve added this feature for the next release of the object. The name of
> the pattrforward object’s containing patcher will be “this”. And “this”
> will work at any patcher level.

Wow, nobody can beat you with the speed of implementing useful stuff
(even more useful than asked for), thanks a lot.
I can wait (…for the incremental) update…

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#72837

You must be logged in to reply to this topic.