<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>confectionary malfunction &#187; coffee</title>
	<atom:link href="http://sugarandcyanide.com/blog/category/coffee/feed/" rel="self" type="application/rss+xml" />
	<link>http://sugarandcyanide.com/blog</link>
	<description>i think i&#039;ve had a lot more than the bottle said to take</description>
	<lastBuildDate>Thu, 12 Jan 2012 00:57:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>playing in coffee</title>
		<link>http://sugarandcyanide.com/blog/2009/09/12/playing-in-coffee/</link>
		<comments>http://sugarandcyanide.com/blog/2009/09/12/playing-in-coffee/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 03:35:52 +0000</pubDate>
		<dc:creator>kiki</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[cinema4d]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://sugarandcyanide.com/blog/?p=86</guid>
		<description><![CDATA[I&#8217;m slowly coming out of the fog of Maya, now that I&#8217;m done with using it for Animation Mentor, and I&#8217;ve been trying to get back into Cinema 4D. I just wanted to post this short COFFEE script snippet. This looks through all the animation curves on an object and spits out information on them. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m slowly coming out of the fog of Maya, now that I&#8217;m done with using it for Animation Mentor, and I&#8217;ve been trying to get back into Cinema 4D.  I just wanted to post this short COFFEE script snippet.  This looks through all the animation curves on an object and spits out information on them.</p>
<pre>
var op = doc->GetActiveObject();
var curTime = doc->GetTime();

println("\nKey dump for ", op->GetName(), ":\n");

var t = op->GetFirstCTrack();
if (t == NULL)
	println("Error.");

var i = 0;
var j = 0;
var k;
var c;

while (t != NULL) {
	i++;
	c = t->GetCurve();
	println("\tTrack ", i, ": ", t->GetName(), " -- ",
	c->GetKeyCount(), " keys.");

	for (j = 0; j < c->GetKeyCount(); j++) {
		k = c->GetKey(j);
		var bt = k->GetTime();
		println("\t\t", j, ": v", k->GetValue(), ", t:", bt->GetFrame(30));
	}

	t = t->GetNext();
}

println("Number of tracks: ", i);
</pre>
<p>The sad part is this: you can&#8217;t add new keys to curves in COFFEE; you can only read what&#8217;s there.  (EPIC FAIL, Maxon.)  At least now I know how to get keys and how the BaseTime class works.</p>
]]></content:encoded>
			<wfw:commentRss>http://sugarandcyanide.com/blog/2009/09/12/playing-in-coffee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

