<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Object to check for connection?]]></title><description><![CDATA[<p>I would like to be able to control a spigot based on whether or not there is a connection to an inlet. Basically, for a given inlet, I'd like to be able to turn off all other inputs if a connection is made to it, and open that back up when the connection is deleted.</p>
<p>This seems easy enough to do if I use lists to flag where connections are coming from and check for that &quot;type&quot; flag at the point of input, but the issue is when I get rid of that connection, there's no way to tell pd to switch back to accepting other inputs.</p>
<p>Does this make any sense? If there was an object that put out a 1 or 0 depending on if anything was connected to its inlet, I'd be all happy.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 20:09:33 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14245.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jan 2023 04:35:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Object to check for connection? on Tue, 24 Jan 2023 04:35:46 GMT]]></title><description><![CDATA[<p>I would like to be able to control a spigot based on whether or not there is a connection to an inlet. Basically, for a given inlet, I'd like to be able to turn off all other inputs if a connection is made to it, and open that back up when the connection is deleted.</p>
<p>This seems easy enough to do if I use lists to flag where connections are coming from and check for that &quot;type&quot; flag at the point of input, but the issue is when I get rid of that connection, there's no way to tell pd to switch back to accepting other inputs.</p>
<p>Does this make any sense? If there was an object that put out a 1 or 0 depending on if anything was connected to its inlet, I'd be all happy.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection</guid><dc:creator><![CDATA[Matt Stalcup]]></dc:creator><pubDate>Tue, 24 Jan 2023 04:35:46 GMT</pubDate></item><item><title><![CDATA[Reply to Object to check for connection? on Tue, 24 Jan 2023 07:30:52 GMT]]></title><description><![CDATA[<p>Perhaps [iemguts/canvasconnections] is helpful?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Tue, 24 Jan 2023 07:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Object to check for connection? on Tue, 24 Jan 2023 20:23:07 GMT]]></title><description><![CDATA[<p>Something like this<br />
<img src="/uploads/files/1674591744655-capture-d-%C3%A9cran_2023-01-24_21-21-13.png" alt="Capture d’écran_2023-01-24_21-21-13.png" class="img-responsive img-markdown" /> <a href="/uploads/files/1674591749546-inlet-default-value.pd">inlet-default-value.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/3</guid><dc:creator><![CDATA[FFW]]></dc:creator><pubDate>Tue, 24 Jan 2023 20:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to Object to check for connection? on Tue, 24 Jan 2023 23:46:38 GMT]]></title><description><![CDATA[<p>Thanks <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> and <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ffw">@FFW</a>, this is just what I needed! Seems like running a [metro 1] through a message to [canvasconnections] is even pretty inexpensive, so it's not hard to have this actively turn that spigot on and off depending on if a connection is made. Now to make this work constantly across a variable number of inlets!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/4</guid><dc:creator><![CDATA[Matt Stalcup]]></dc:creator><pubDate>Tue, 24 Jan 2023 23:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to Object to check for connection? on Wed, 25 Jan 2023 01:47:56 GMT]]></title><description><![CDATA[<p>I've whipped up a little abstraction for this purpose. Posted to the abstraction section <a href="https://forum.pdpatchrepo.info/topic/14249/small-connection-checking-tool" rel="nofollow">here</a>.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14245/object-to-check-for-connection/5</guid><dc:creator><![CDATA[Matt Stalcup]]></dc:creator><pubDate>Wed, 25 Jan 2023 01:47:56 GMT</pubDate></item></channel></rss>