<?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/"
	>

<channel>
	<title>Ingmann Design Group &#187; LSL</title>
	<atom:link href="http://ingmanndesign.com/category/idg/how-to/scripting/lsl/feed/" rel="self" type="application/rss+xml" />
	<link>http://ingmanndesign.com</link>
	<description>Doing Business in Second Life.</description>
	<pubDate>Sat, 22 May 2010 06:52:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Touch me Baby!</title>
		<link>http://ingmanndesign.com/2008/08/13/touch-me-baby/</link>
		<comments>http://ingmanndesign.com/2008/08/13/touch-me-baby/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 21:33:00 +0000</pubDate>
		<dc:creator>Noel</dc:creator>
		
		<category><![CDATA[Future of Second Life]]></category>

		<category><![CDATA[LSL]]></category>

		<category><![CDATA[Scripting]]></category>

		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://ingmanndesign.com/2008/08/13/touch-me-baby/</guid>
		<description><![CDATA[I&#8217;ve talked about Gwyn before, she&#8217;s incredible, but she shows how scripting will change soon and become even more low prim. Yay low prim&#8230;. I love this coming down the&#160;pipe.





]]></description>
			<content:encoded><![CDATA[<p class="first"><span class="drop-cap">I</span>&#8217;ve talked about <a href="http://gwynethllewelyn.net/2008/08/09/a-touching-event/">Gwyn</a> before, she&#8217;s incredible, but she shows how scripting will change soon and become even more low prim. Yay low prim&#8230;. I love this coming down the&nbsp;pipe.</p>
<p><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/nhXBbeFMRyY&#038;color1=11645361&#038;color2=13619151&#038;fs=1"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/nhXBbeFMRyY&#038;color1=11645361&#038;color2=13619151&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-2859607948475196";
/* 468x60, created 6/23/08 */
google_ad_slot = "2800512089";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
]]></content:encoded>
			<wfw:commentRss>http://ingmanndesign.com/2008/08/13/touch-me-baby/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Library Scripts - Anim Smooth</title>
		<link>http://ingmanndesign.com/2008/07/15/library-scripts-anim-smooth/</link>
		<comments>http://ingmanndesign.com/2008/07/15/library-scripts-anim-smooth/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 07:30:00 +0000</pubDate>
		<dc:creator>Noel</dc:creator>
		
		<category><![CDATA[Building Techniques]]></category>

		<category><![CDATA[LSL]]></category>

		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://ingmanndesign.com/2008/07/15/library-scripts-anim-smooth/</guid>
		<description><![CDATA[So back to scripting, the first script we&#8217;re going to look at in the library, which is what everyone has in Second Life, is anim Smooth. This was written by Doug Linden at Linden Labs and it&#8217;s a clever little script that has more uses then are first apparent. It&#8217;s a simple script, basically it [...]]]></description>
			<content:encoded><![CDATA[<p class="first"><span class="drop-cap">S</span>o back to scripting, the first script we&#8217;re going to look at in the library, which is what everyone has in <a href="http://secondlife.com/?u=eab4533a41eb8f284a081df810818618">Second Life</a>, is anim Smooth. This was written by Doug Linden at Linden Labs and it&#8217;s a clever little script that has more uses then are first apparent. It&#8217;s a simple script, basically it does one thing as soon as you rez the object or implement the script and that is to animate the texture on all the sides of the prim making it scroll across them. Here&#8217;s the&nbsp;script:</p>
<blockquote class="tr_bq"><p><span id=""></span><font size="2">// anim SMOOTH Script</font><br />
<font size="2"></font><br />
<font size="2">// By Doug Linden</font><br />
<font size="2">//</font><br />
<font size="2">// If you are interested in scripting, check out</font><br />
<font size="2">// the Script Help under the help menu.</font><br />
<font size="2">// The double slash means these lines are comments</font><br />
<font size="2">// and ignored by the computer.</font><br />
<font size="2">// All scripts have a default state, this will be</font><br />
<font size="2">// the first code executed.</font><br />
<font size="2">default</font><br />
<font size="2">{</font></p>
<p><font size="2">&nbsp;&nbsp;&nbsp;&nbsp; // state_entry() is an event handler, it executes</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; // whenever a state is entered.</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; state_entry()</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; { </font><br />
<font size="2"><br />
</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; // llSetTextureAnim() is a function that animates a texture on a face.</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; llSetTextureAnim(ANIM_ON SMOOTH LOOP, ALL_SIDES,1,1,1.0, 1,0.25);</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; // animate the script to scroll across all the faces.</font><br />
<font size="2"><br />
</font><br />
<font size="2">&nbsp;&nbsp;&nbsp;&nbsp; }</font><br />
<font size="2">}</font></p></blockquote>
<div>So this script basically does the one function <a href="http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetTextureAnim">llSetTextureAnim</a>. Taking a look at the lsl wiki, or hovering our mouse over the command in the script window if you are in Second Life gives us the arguments for the function:</div>
<div></p>
<blockquote class="tr_bq"><p>llSetTextureAnim(integer mode, integer side, integer x_frames, integer y_frames, float start, float length, float&nbsp;rate);</p></blockquote>
</div>
<div>So, we can do some interesting things with this, the first part that I messed with was the rate, which in the script of the library is the final 0.25 number. Changing that to .05 and using a water texture gives a very nice effect of waves moving across the prim, very basic but effective. Changing the ALL_SIDES parameter lets you choose which side of your prim actually has animation which can also be extremely helpful. So right away we have some decent uses for this script, but what about exploring further into possibilities. If you look at the wiki it give you all sorts of options. You can rotate the script, which is great for a steaming culdron effect and I&#8217;ve used to make witches pots over fires for halloween. You can make it zoom in and out. If you&#8217;re really clever you can even make true animations by using the old flip book trick. This is much more advanced requiring you to make a texture divided into multiple parts with each frame of animation right above one another and I&#8217;m not going to get into it here. My point is that the resources for very advanced content creation is given to all of us if we explore a bit. </div>
<div>&nbsp;</div>
<div>Other parts of the library can be equally as fun, check it out yourself.</div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-2859607948475196";
/* 468x60, created 6/23/08 */
google_ad_slot = "2800512089";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
]]></content:encoded>
			<wfw:commentRss>http://ingmanndesign.com/2008/07/15/library-scripts-anim-smooth/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Explorations in the Library&#8230;. scripts.</title>
		<link>http://ingmanndesign.com/2008/07/09/explorations-in-the-library-scripts/</link>
		<comments>http://ingmanndesign.com/2008/07/09/explorations-in-the-library-scripts/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 16:00:00 +0000</pubDate>
		<dc:creator>Noel</dc:creator>
		
		<category><![CDATA[Culture]]></category>

		<category><![CDATA[LSL]]></category>

		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://ingmanndesign.com/2008/07/09/explorations-in-the-library-scripts/</guid>
		<description><![CDATA[

So I thought it&#8217;d be a good idea to take a look at the default stuff Linden Labs includes when you first start Second Life as a brand new avatar. They occasionally change and update this stuff but everyone has it. It&#8217;s called the library and it&#8217;s a seperate folder in your inventory underneath your [...]]]></description>
			<content:encoded><![CDATA[<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_qNR81O0cjwY/SHL5Fwb4LEI/AAAAAAAABVo/eV8iZzRyvQs/s1600-h/LibraryScripts+copy.jpg" imageanchor="1" style="border-right: 0px; border-top: 0px; margin-left: 1em; border-left: 0px; margin-right: 1em; border-bottom: 0px; background-color: transparent; cssfloat:  ;"><img ja="true" src="http://4.bp.blogspot.com/_qNR81O0cjwY/SHL5Fwb4LEI/AAAAAAAABVo/OGD-hGmnDU8/s400-R/LibraryScripts+copy.jpg" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px; cssfloat:  ;" /></a></div>
<p>
<div class="separator" style="clear: both; text-align: left;">So I thought it&#8217;d be a good idea to take a look at the default stuff Linden Labs includes when you first start Second Life as a brand new avatar. They occasionally change and update this stuff but everyone has it. It&#8217;s called the library and it&#8217;s a seperate folder in your inventory underneath your main inventory. You can&#8217;t change anything in it but you can make a copy and make changes to that and save it in your main inventory. The part that most people in the blogosphere (Geez, what a word.) have neglected to talk about is the scripts. Maybe that&#8217;s because there are only three. However they are incredibly useful little scripts, especially from the standpoint of seeing how certain things happen. In fact, remember when I couldn&#8217;t find the merry-go-round that I wanted to point to as an example of how I got the <a href="http://www.ingmanndesign.com/2008/06/codex-third-chapter.html">Codex Scope</a> to spin? The rotation script in the library is how you do that. Over the next few posts I hope I get a chance to look at these scripts in a bit more detail and show how they apply to what you can build. However, it&#8217;s a great idea to really look at everything in the library because it&#8217;s a great starting point, it&#8217;s a bit basic sure, but you get to see how things have been built and there&#8217;s no reason not to learn from people who&#8217;ve already invented the wheel.</div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-2859607948475196";
/* 468x60, created 6/23/08 */
google_ad_slot = "2800512089";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
]]></content:encoded>
			<wfw:commentRss>http://ingmanndesign.com/2008/07/09/explorations-in-the-library-scripts/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
