Re: Opening gui of running -nogui pure data instance

Yogi data <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <VI0P194MB2740344F0AFBA94D617DC7FDD83BA@VI0P194MB2740.EURP194.PROD.OUTLOOK.COM>
Something is unclear to me.

I'm on linux, with command line, my path to pd-gui is /usr/local/lib/pd/tcl/pd-gui.tcl

So the message is " vis /usr/local/lib/pd/tcl/pd-gui.tcl "

In order to send this to pd,
Should I use 'pdsend' and create a netreceive in my patch ?
( this worked fine)

Or find the port "pd" already opened ?

________________________________
From: IOhannes m zmoelnig via Pd-list <[email protected]>
Sent: 28 August 2025 14:40
To: [email protected] <[email protected]>
Subject: [PD] Re: Opening gui of running -nogui pure data instance

On 8/28/25 14:14, Yogi data wrote:
> Hello,
>
> Is there a way to show gui of a pd instance that was launched with -nogui option ?
>
send a "vis" message to Pd¹.
the vis message takes the base path to your Pd(-GUI) installation.

since this can be different for each system, you can use something like
this to dynamically get the right path:

```
[symbol ../tcl/pd-gui.tcl(
|
[file which]
|
[symbol $1/../..(
|
[file normalize]
|
[vis $1(
|
[s pd]
```

if you provide no argument (e.g. [; pd vis(), the GUI will be closed.

(i think the interface is a bit ugly, and we should be able to simply do
[; pd vis 1(, resp [; pd vis 0(; but that's just syntactic sugar)

gfmasdr
IOhannes

¹ you have to provide your own means to send that message to Pd, once it
is running headless. Pd provides plenty of ways to do that.

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/7CGUGCBMKOC27A56EXYM6AZA7N2GNN4S/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.