<?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: using JitterGUIUtils in Javascript</title>
		<atom:link href="http://cycling74.com/forums/topic/using-jitterguiutils-in-javascript/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/using-jitterguiutils-in-javascript/feed</link>
		<description></description>
		<pubDate>Mon, 17 Jun 2013 23:38:38 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/using-jitterguiutils-in-javascript/#post-31111</guid>
					<title><![CDATA[using JitterGUIUtils in Javascript]]></title>
					<link>http://cycling74.com/forums/topic/using-jitterguiutils-in-javascript/#post-31111</link>
					<pubDate>Sun, 01 Apr 2007 03:49:38 +0000</pubDate>
					<dc:creator>pseudostereo</dc:creator>

					<description>
						<![CDATA[
						<p>Hi -</p>
<p>I&#8217;m trying to figure out how to use the enticing JitterGUIUtils classes in a javascript. </p>
<p>The one relevant example I can find (&#8220;jitter-gui-sliderexample&#8221;) demonstrates their use in patcher objects, but not in a script. </p>
<p>So how would one instantiate something like a JitterGUISlider in a javascript?</p>
<p>First of all, I assume it&#8217;s necessary to copy &#8216;jitter_gui_slider.js&#8217; to the jsextensions folder, right?</p>
<p>After I&#8217;ve done that, at least I can add this line to my script and compile without error:</p>
<p>my_slider = new JitterGUISlider(&#8220;holiday&#8221;); </p>
<p>But that&#8217;s as far as I can get.</p>
<p>If I try:</p>
<p>for(var n in my_slider)<br />
	post(n,&#8221;n&#8221;);</p>
<p>I get back &#8216;maxobj&#8217; and that&#8217;s it &#8211; whereas with any actual max or jitter object I would get a full list of attributes (as properties of the object).</p>
<p>Of course if I add</p>
<p>my_slider.color = [0.8,0.4,0,1];<br />
my_slider.position = [0,0,0];<br />
my_slider.scale = [0.3,1,1];</p>
<p>I get those back as properties, but clearly they weren&#8217;t there until I mentioned them.</p>
<p>(I&#8217;m assuming based on the example that color, position and scale are attributes of a JitterGUISlider &#8211; ?)</p>
<p>- pH</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

