<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! - Open Source Content Management" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Simple Change Link</title>
		<description><![CDATA[Simple scripts tutorials]]></description>
		<link>http://simplescript.sillo.org/index.php/simple-change-link/18-getting-started8</link>
		<lastBuildDate>Wed, 17 May 2017 15:54:43 +0000</lastBuildDate>
		<generator>Joomla! - Open Source Content Management</generator>
		<atom:link rel="self" type="application/rss+xml" href="http://simplescript.sillo.org/index.php/simple-change-link/18-getting-started8?format=feed&amp;type=rss"/>
		<language>en-gb</language>
		<item>
			<title>Getting Started</title>
			<link>http://simplescript.sillo.org/index.php/simple-change-link/getting-started</link>
			<guid isPermaLink="true">http://simplescript.sillo.org/index.php/simple-change-link/getting-started</guid>
			<description><![CDATA[<div class="feed-description"><p>For this tutorial we are going to make a simple object with 3 animations and a Chat command.</p>
<p>First create an object with 4 prims like that :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k01.JPG" border="0" /></p>
<p style="text-align: center;"> </p>
<p>Choose linked prims with different faces number : torus (1 face), cylinder (3 faces) and box (6 faces).</p>
<p>Put in each linked prim the script <em>child </em>:</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k02.JPG" border="0" /></p>
<p>The script <em>child </em>change primitive name for <em>move </em>:</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k03.JPG" border="0" /></p>
<p>Now put the script <em>memo move</em> in the object :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k04.JPG" border="0" /></p>
<p>You get a menu :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k05.JPG" border="0" /></p>
<p>So change some elements (color, texture, alpha...) :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k06.JPG" border="0" /></p>
<p>Click on <em>Next </em>button. You get a new menu :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k07.JPG" border="0" /></p>
<p style="text-align: justify;">Change some elements (position, rotation, scale, color, texture, alpha) :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k08.JPG" border="0" /></p>
<p style="text-align: justify;">Click on <em>Next </em>button. You get a new menu :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k07.JPG" border="0" /></p>
<p style="text-align: justify;">Change for the last time some elements (position, rotation, scale, color, texture, alpha) :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k09.JPG" border="0" /></p>
<p style="text-align: justify;">This time click on <em>End </em>button. You get informations in Chat :</p>
<pre style="text-align: justify;">[06:49 AM]  //:::::::::::::::  begin notecard  ::::::::::::::::::::: <br />@Anims<br />cmd 01<br />cmd 02<br />cmd 03<br /><br />@Prims<br />2<br />3<br />4<br /><br />@Faces<br />6<br />1<br />3<br /><br />@Pos<br />&lt;-0.62051, 0.30719, 2.15299&gt;|&lt;0.00000, 0.00000, 0.00000, 1.00000&gt;<br />&lt;0.48293, 0.97324, 1.63950&gt;|&lt;-0.33079, 0.93708, -0.11155, 0.00465&gt;<br />&lt;-1.16260, 0.00000, 0.98898&gt;|&lt;0.60888, -0.16272, -0.12947, 0.76553&gt;<br />&lt;-0.26474, 0.30722, 1.41689&gt;|&lt;-0.12515, -0.28160, 0.03707, 0.95061&gt;<br />&lt;0.48293, 0.97324, 2.08546&gt;|&lt;0.34677, -0.91757, 0.04036, 0.19022&gt;<br />&lt;-1.16260, 0.00001, 2.19622&gt;|&lt;-0.05978, 0.74217, -0.61960, 0.24841&gt;<br />&lt;0.17649, 0.30726, 1.41689&gt;|&lt;-0.23242, -0.20233, -0.36816, 0.87721&gt;<br />&lt;0.48295, 0.80363, 2.69600&gt;|&lt;0.38411, -0.89677, -0.19856, 0.09398&gt;<br />&lt;-0.21501, 0.04951, 2.05584&gt;|&lt;0.00645, 0.87722, -0.40648, 0.25536&gt;<br /><br />@Colors<br />np<br />np<br />np<br />&lt;1.000000, 0.000000, 1.000000&gt;|1.000000<br />&lt;1.000000, 1.000000, 1.000000&gt;|1.000000<br />np<br />np<br />np<br />np<br />&lt;0.000000, 0.501961, 0.000000&gt;|1.000000<br />np<br />np<br />np<br />&lt;1.000000, 1.000000, 0.000000&gt;|1.000000<br />&lt;1.000000, 1.000000, 1.000000&gt;|1.000000<br />np<br />np<br />np<br />np<br />&lt;1.000000, 0.000000, 0.501961&gt;|1.000000<br />np<br />np<br />np<br />&lt;0.000000, 0.000000, 1.000000&gt;|1.000000<br />[06:49 AM]  //:::::::::::::::  following notecard  ::::::::::::::::: <br />&lt;1.000000, 0.000000, 0.000000&gt;|1.000000<br />np<br />np<br />np<br />np<br />&lt;0.000000, 0.501961, 0.501961&gt;|1.000000<br /><br />@Textures<br />np<br />np<br />5748decc-f629-461c-9a36-a35a221fe21f<br />np<br />np<br />np<br />e38248f9-f2ee-2c9f-aa49-4860857e3b08<br />np<br />np<br />5748decc-f629-461c-9a36-a35a221fe21f<br />np<br />np<br />7692b444-83db-90af-fe08-e602ca618ade<br />np<br />np<br />np<br />b00fd16f-1b5a-8667-bf61-90d960b8112a<br />np<br />np<br />5748decc-f629-461c-9a36-a35a221fe21f<br />np<br />np<br />7692b444-83db-90af-fe08-e602ca618ade<br />np<br />np<br />np<br />7156005b-b9c4-bb76-bd27-37b6558e0bc2<br />np<br />np<br />7156005b-b9c4-bb76-bd27-37b6558e0bc2<br /><br />[06:49 AM]  //:::::::::::::::  end notecard  :::::::::::::::::::::::  <br /></pre>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Copy and paste these informations in a notecard, call it <em>configmove </em>:</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k10.JPG" border="0" /></p>
<p style="text-align: justify;">You can delete lines with time and informations like "begin notecard" if you want a clean note...</p>
<p style="text-align: justify;">Drop this notecard in object, and doprt the script <em>mover </em><span style="text-decoration: underline;">after</span> the notecard :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k11.JPG" border="0" /></p>
<p style="text-align: justify;">Wait for the script to read the notecard.</p>
<p style="text-align: justify;">Drop the script <em>chat command</em> it in the object :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k13.JPG" border="0" /></p>
<p style="text-align: justify;">Now say <em>cmd 01</em> in the public Chat. You get the first state :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k06.JPG" border="0" /></p>
<p style="text-align: justify;">To get state 2 and 3 just say <em>cmd 02 </em>or <em>cmd 03</em>.</p>
<p style="text-align: justify;">If you look at the notecard you can see these commands in section @Anims :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k14.JPG" border="0" /></p>
<p style="text-align: justify;">You can change them if you want. The script<em> chat command</em> just get the command in Chat and send it to script <em>mover</em>. This script is modify so you can see the code, it's simple :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k12.JPG" border="0" /></p>
<p style="text-align: justify;">You can adapt it if you want.</p>
<p>Now take off the script <em>chat command</em> and drop the script <em>click command</em> :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k15.JPG" border="0" /></p>
<p>Now you change state with click on object. This script is also modify so you can adapt it if you want :</p>
<p style="text-align: center;"><img src="http://simplescript.sillo.org/images/stories/tuto_1k/1k16.JPG" border="0" /></p>
<p>It use the special command <em>next</em> that start the next state. There is also the special command <em>previous </em>if you need it.</p>
<p>Default channel is 103, you can change it by adding section @Channel in the notecard, like that :</p>
<pre>@Channel<br />1004</pre>
<p>When you change notecard you must reset the script to make it read the note. <span id="result_box">This  provision aims to avoid frequent re-reading the note when the script  mover is placed in an object that requires many changes.</span><span id="result_box"><span>You just think to do a reset with each change.</span></span></p>
<p style="text-align: justify;"> </p></div>]]></description>
			<author>sandrine@sl-creation.org (sandrine)</author>
			<category>Getting Started</category>
			<pubDate>Thu, 23 Sep 2010 11:24:55 +0000</pubDate>
		</item>
	</channel>
</rss>
