<?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: What&#039;s up with LiveApi object properties?</title>
		<atom:link href="http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/feed</link>
		<description></description>
		<pubDate>Mon, 17 Jun 2013 22:12:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/#post-63668</guid>
					<title><![CDATA[What&#039;s up with LiveApi object properties?]]></title>
					<link>http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/#post-63668</link>
					<pubDate>Fri, 18 May 2012 08:33:12 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>var clip = new LiveAPI();<br />
	clip.goto(&#8220;this_device canonical_parent clip_slots 0 clip&#8221;);<br />
	var isPlaying = clip.get(&#8220;is_playing&#8221;);<br />
	post(isPlaying, typeof isPlaying);</p>
<p>This will print:<br />
0 object</p>
<p>WTF? Why is this not a number and how do you parse it to an integer?</p>
<p>Something like this won&#8217;t work because of the object:<br />
if(isPlaying) {<br />
}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/#post-229530</guid>
					<title><![CDATA[Re: What&#039;s up with LiveApi object properties?]]></title>
					<link>http://cycling74.com/forums/topic/whats-up-with-liveapi-object-properties/#post-229530</link>
					<pubDate>Fri, 18 May 2012 08:47:00 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>Ok it&#8217;s a similar problem to the LiveApi callback arguments I posted last week. I had contact with support about that and the answer was basically &#8220;It has always been like that&#8221;.</p>
<p>I really hope C74 will consider these things bugs. I am surprised nobody ran into these issues before.</p>
<p>Here&#8217;s a way to convert the object to an actual &#8220;number&#8221; to work with:</p>
<p>        var ob = clip.get(&#8220;is_playing&#8221;);<br />
	var tmp = Array.prototype.slice.call(ob);<br />
	var isPlaying = tmp[0];<br />
	post(isPlaying, typeof isPlaying);</p>
<p>It will print something like:<br />
0, number</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

