<?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: Texture to jit.gl.multiple using javascript</title>
		<atom:link href="http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 10:00:35 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-53258</guid>
					<title><![CDATA[Texture to jit.gl.multiple using javascript]]></title>
					<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-53258</link>
					<pubDate>Thu, 11 Nov 2010 00:08:44 +0000</pubDate>
					<dc:creator>micron</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, I&#8217;m trying to assign a texture to jit.gl.multiple using javascript but with no result. Everything is good if i write in the object @texture &#8220;texturename&#8221; but not using javascript.<br />
The javascript code is:</p>
<p>outlets = 2;<br />
var pre=1;<br />
var fois=1;<br />
var iter=1;<br />
f1=0; f2=0; f3=0; f4=0</p>
<p>p = this.patcher;</p>
<p>// OTTIENI GLI OGGETTI NELLA PATCH<br />
var molti = p.getnamed(&#8220;moltiplicatore&#8221;);</p>
<p>if (molti == null){<br />
    post(&#8220;couldnt find molti objectn&#8221;);<br />
}else{<br />
    post(&#8220;ok molti trovato&#8221;);<br />
}</p>
<p>var texture = new JitterObject(&#8220;jit.gl.texture&#8221;,&#8221;foo&#8221;);<br />
texture.name = &#8220;three&#8221;;<br />
texture.file = &#8220;logo_portogallo.jpg&#8221;;<br />
molti.texture = &#8220;three&#8221;; ///// IS IT WRONG ?!?!?</p>
<p>In the attach you can find the patch with image for texture<br />
Thank for help ;)<br />
micron</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191369</guid>
					<title><![CDATA[Re: Texture to jit.gl.multiple using javascript]]></title>
					<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191369</link>
					<pubDate>Thu, 11 Nov 2010 00:15:22 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>Unfortunately, for legacy reasons, the Maxobj works differently than JitterObject w/r/t attribute setters. p.getnamed() returns an instance of Maxobj. So you must set the attribute by calling it like a function, or use the message function.</p>
<p>i.e. molti.texture(&#8220;three&#8221;); or molti.message(&#8220;texture&#8221;,&#8221;three&#8221;);</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191370</guid>
					<title><![CDATA[Re: Texture to jit.gl.multiple using javascript]]></title>
					<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191370</link>
					<pubDate>Fri, 12 Nov 2010 00:44:12 +0000</pubDate>
					<dc:creator>micron</dc:creator>

					<description>
						<![CDATA[
						<p>WOW Thank you so much!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191371</guid>
					<title><![CDATA[Re: Texture to jit.gl.multiple using javascript]]></title>
					<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191371</link>
					<pubDate>Wed, 17 Nov 2010 00:40:20 +0000</pubDate>
					<dc:creator>micron</dc:creator>

					<description>
						<![CDATA[
						<p>Ok if i use this all is ok<br />
molti.message(&#8220;texture&#8221;,&#8221;one&#8221;, &#8220;two&#8221;, &#8220;three&#8221;); </p>
<p>but i&#8217;m trying to assign texture reading inside a folder so i have to create the message using code,<br />
now i&#8217;m using this:<br />
for (var i=0; i< (immagini.length); i ++){</p>
</p><p>        var textures = new JitterObject(&#8220;jit.gl.texture&#8221;,&#8221;fooz&#8221;);<br />
        textures.name = i.toString();<br />
        textures.file = immagini[i];</p>
<p>        elencotexture =  &#8220;&#8221;" + textures.name + &#8220;&#8221;" + &#8220;,&#8221; + elencotexture;<br />
        post(elencotexture + &#8220;n&#8221;);// HERE WITHOUT SLASHES</p>
<p>        molti.message(&#8220;texture&#8221; , elencotexture); // HERE WITH SLASHES<br />
    }</p>
<p>but i get:<br />
&#8220;9&#8243;,&#8221;8&#8243;,&#8221;7&#8243;,&#8221;6&#8243;,&#8221;5&#8243;,&#8221;4&#8243;,&#8221;3&#8243;,&#8221;2&#8243;,&#8221;1&#8243;,&#8221;0&#8243;,</p>
<p>and i would like:<br />
&#8220;9&#8243; , &#8220;8&#8243;, &#8220;7&#8243;, </p>
<p>like the old manual message<br />
molti.message(&#8220;texture&#8221;,&#8221;one&#8221;, &#8220;two&#8221;, &#8220;three&#8221;); </p>
<p>i try with a function to stripslashes but no resul<br />
thanks for any suggestions<br />
micron</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191372</guid>
					<title><![CDATA[Re: Texture to jit.gl.multiple using javascript]]></title>
					<link>http://cycling74.com/forums/topic/texture-to-jit-gl-multiple-using-javascript/#post-191372</link>
					<pubDate>Wed, 17 Nov 2010 02:23:35 +0000</pubDate>
					<dc:creator>Brian Gruber</dc:creator>

					<description>
						<![CDATA[
						<p>Sounds like you want to use Function.apply. Instead of concatenating all of the names together with <code>+</code>, shove them in an array. Then: <code>molti.message.apply(molti, array_of_arguments)</code></p>
<p>(btw, you can use backquotes, on the same key with ~ on us keyboards, to get nicely formatted code on the forum).</p>
<p>/brian</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

