<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: bpatcher @args multi segment name</title>
		<atom:link href="http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 14:24:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-56774</guid>
					<title><![CDATA[bpatcher @args multi segment name]]></title>
					<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-56774</link>
					<pubDate>Sun, 01 May 2011 21:53:36 +0000</pubDate>
					<dc:creator>MIB</dc:creator>

					<description>
						<![CDATA[
						<p>here is my problem: I am trying to script a bpatcher with some arguments. that is easy enough. However, my bpatcher has audiounit~ in it and I use the Norris spectral units which have names like &#8220;Spectral DroneMaker&#8221;. Scripting seems to break when there are multiple &#8220;words&#8221; in a string.<br />
I tried the following with no success:</p>
<p>function bang()  {</p>
<p>   this.patcher.newdefault(50, 50, &#8220;bpatcher&#8221;);     //works</p>
<p>   this.patcher.newdefault(50, 200, &#8220;bpatcher&#8221;, &#8220;@args&#8221;, &#8220;hello&#8221;, 1, 2, 3);   //works</p>
<p>   this.patcher.newdefault(50, 400, &#8220;bpatcher&#8221;, &#8220;@args&#8221;, &#8220;hello there&#8221;, 1, 2, 3);   //doesn&#8217;t work</p>
<p>   this.patcher.newdefault(50, 600, &#8220;bpatcher&#8221;, &#8220;@args&#8221;, &#8220;&#8221;hello there&#8221;", 1, 2, 3);   //doesn&#8217;t work<br />
}</p>
<p>Is there a trick to this I&#8217;m not seeing or is this functionality not supported?</p>
<p>Thanks for any pointers!!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203470</guid>
					<title><![CDATA[Re: bpatcher @args multi segment name]]></title>
					<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203470</link>
					<pubDate>Mon, 02 May 2011 18:26:59 +0000</pubDate>
					<dc:creator>MIB</dc:creator>

					<description>
						<![CDATA[
						<p>anybody?  I really need this functionality!!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203471</guid>
					<title><![CDATA[Re: bpatcher @args multi segment name]]></title>
					<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203471</link>
					<pubDate>Mon, 02 May 2011 21:08:45 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>Here are a couple of ways to do it:</p>
<p>bpatch = this.patcher.newdefault(50, 200, &#8220;bpatcher&#8221;);<br />
bpatch.args(&#8220;hello there bongos&#8221;, 1, 2);</p>
<p>or</p>
<p>this.patcher.message(&#8220;script&#8221;, &#8220;newobject&#8221;, &#8220;newobj&#8221;, &#8220;@text&#8221;, &#8220;bpatcher @args hello there, 1, 2&#8243;)</p>
<p>-Ben</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203472</guid>
					<title><![CDATA[Re: bpatcher @args multi segment name]]></title>
					<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203472</link>
					<pubDate>Mon, 02 May 2011 22:03:54 +0000</pubDate>
					<dc:creator>MIB</dc:creator>

					<description>
						<![CDATA[
						<p>I see. Thanks so much. gonna give it a try right now.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203473</guid>
					<title><![CDATA[Re: bpatcher @args multi segment name]]></title>
					<link>http://cycling74.com/forums/topic/bpatcher-args-multi-segment-name/#post-203473</link>
					<pubDate>Mon, 02 May 2011 22:33:52 +0000</pubDate>
					<dc:creator>MIB</dc:creator>

					<description>
						<![CDATA[
						<p>works like a charm. although it seems order of operations is important. if I create a bpatcher like so:</p>
<p>            bpatcher = this.patcher.parentpatcher.newdefault(objCoords[0], objCoords[1], &#8220;bpatcher&#8221;);</p>
<p>            bpatcher.name(name + &#8220;.maxpat&#8221;);<br />
            bpatcher.patching_rect(objCoords[0], objCoords[1], 225, 160);<br />
            bpatcher.args(nTbP, nTbP2, nTbP3, nTbP4);</p>
<p>I get error messages saying that bpatcher.patching_rect and bpatcher.args are not defined. However, if I put the bpatcher.name at the bottom of the instruction list, like so:</p>
<p>            bpatcher = this.patcher.parentpatcher.newdefault(objCoords[0], objCoords[1], &#8220;bpatcher&#8221;);</p>
<p>            bpatcher.patching_rect(objCoords[0], objCoords[1], 225, 160);<br />
            bpatcher.args(nTbP, nTbP2, nTbP3, nTbP4);<br />
            bpatcher.name(name + &#8220;.maxpat&#8221;);</p>
<p>everything works fine.</p>
<p>Thanks again!!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

