Hi Ed, thanks for that. I have played around with using text files to write co-ordinates to an array. However, what I need is more control of the co-ordinates. In your example, whenever I bang the message to start the animation, the 3D ball jumps back to the start and then replays the animation (obviously!). But is it possible to have each animation start from where the last one finished? Or better still, is it possible to manipulate the co-ordinates dynamically? For example, if I record movement which gives me three &#39;points&#39; within the frame, can I write this to a table then apply it to an animation?<br>
<br>I can see how the table arrays work (roughly!), but I want to be able to manipulate the arrays based on user input (mouse, motion sensor etc). Does this make sense?<br><br>Thanks again for all your time, the PD community in generally has been really helpful, I think I&#39;m just a few steps from being able to achieve what I need, but when you&#39;re new to something, every hurdle&#39;s a big one!<br>
<br>Regards<br>Simon<br><br><br><div class="gmail_quote">
On Fri, May 1, 2009 at 4:13 PM,  <span dir="ltr">&lt;<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi Simon,<br>
<br>
To be honest, I didn&#39;t really understand your question at first. It pays to be clear - but I sometimes don&#39;t get an answer from the list either. If you make it clear early on that your question is about a specific object - perhaps in the subject line of your email, it may get a better response.<br>


<br>
You must realise that everything is just a way of storing and transmitting data - numbers and symbols. The co-ordinates you store in the array for splinepath are (floating point number) co-ordinates in the three-dimensional space of the gemwin. So the start and endpoints for your animations are specified by the first set of 3 co-ordinates and the last set of 3 co-ordinates.<br>


The co-ordinates in GEM are relative to the centre of the space, so X=0, Y=0, Z=0 sent into a translateXYZ object will send another object (sphere, cube, rectangle etc) to the centre of the gem window. This is why the ball is always at the right-top-front corner of the example I sent you - because the numbers sent into the translateXYZ object are all positive. Change the 40 to -40 in the attached PD patch.<br>


<br>
A word about arrays: an array is just a list of numbers really. Although it is displayed as a graph in PD, the input to [splinepath 3] takes three numbers from the array at a time, so the one-dimensional graph view in PD is quite useless for visualizing this. If the first set of co-ordinates is set to -1, -1, -1, the graph of the array will display this as a straight line, whereas in fact it is a single point in three dimensional space. So whereas a graph or a list of the array contents might show:<br>


-1,-1,-1,0,1,-0.5,2,2,0<br>
the actual structure being read by the [spline_path] object is:<br>
Point A: X=-1, Y=-1, Z=-1<br>
Point B: X=0,  Y=1, Z=-0.5<br>
Point C: X=2,  Y=2, Z=0<br>
<br>
Best of luck with it,<br>
Ed<br>
<div><br>
--- On Fri, 1/5/09, Simon Ball &lt;<a href="mailto:sballmada@googlemail.com" target="_blank">sballmada@googlemail.com</a>&gt; wrote:<br>
<br>
&gt; From: Simon Ball &lt;<a href="mailto:sballmada@googlemail.com" target="_blank">sballmada@googlemail.com</a>&gt;<br>
</div>&gt; Subject: Re: A question...<br>
<div>&gt; To: &quot;Ed Kelly&quot; &lt;<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>&gt;<br>
</div>&gt; Date: Friday, 1 May, 2009, 10:12 AM<br>
<div><div></div><div>&gt; Thanks Ed, that&#39;s definitely given<br>
&gt; me a clearer view of what spline path does, I certainly have<br>
&gt; more control now than I did previously. Is there a way to<br>
&gt; get more precise information to the table arrays, such as<br>
&gt; defining start and end points for the animation?<br>
&gt;<br>
&gt;<br>
&gt; I have put the question to the list, but I haven&#39;t had<br>
&gt; a response. Perhaps my e-mails are not getting through, but<br>
&gt; I imagine its either because people are bored of my<br>
&gt; questions or there is some obvious documentation that<br>
&gt; I&#39;m missing. Are there any walk through&#39;s/tutorials<br>
&gt; on this kind of animation in GEM?<br>
&gt;<br>
&gt;<br>
&gt; Thanks again for your help, I think Andy is planning to get<br>
&gt; you in for another workshop at some point, which would be<br>
&gt; really useful. I&#39;ve been getting more into PD so have a<br>
&gt; vast array of questions and should have a better<br>
&gt; understanding of the answers of the answers you give!<br>
&gt;<br>
&gt;<br>
&gt; Thanks again mate<br>
&gt; Simon<br>
&gt;<br>
&gt; On Thu, Apr 30, 2009 at 5:15 PM,<br>
&gt; Ed Kelly &lt;<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; Hi Simon...<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Apologies for the late reply. It is my understanding that<br>
&gt; [spline_path] interpolates between points in a table. These<br>
&gt; are read out in multiples, when a number between 0 and 1 is<br>
&gt; sent into the first inlet corresponding to the position in<br>
&gt; the table.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; These are at this stage just numbers. If they are sent to a<br>
&gt; translateXYZ object then they become position co-ordinates,<br>
&gt; or if they are sent to a rotateXYZ object they become<br>
&gt; rotation values in degrees.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Since spline_path reads from a table, the values should be<br>
&gt; stored as triples: x, y and z co-ordinate values can be<br>
&gt; manipulated by tabwrite objects as long as they are input to<br>
&gt; the table in series (for each point x, then y, then z). Or<br>
&gt; if you just want to work in two dimensions, x and y<br>
&gt; co-ordinates stored as pairs will work. The table size must<br>
&gt; be divisible by the dimensions, so a multiple of 3 for xyz<br>
&gt; co-ords etc. The output is a smoothed (spline) curve - a<br>
&gt; spline path through n-dimensions.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Have a look at this example. one of the spline_path objects<br>
&gt; controls a sphere&#39;s position, whereas the other controls<br>
&gt; its rotation.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hope this helps!<br>
&gt;<br>
&gt; Ed<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Lone Shark: Synchromatic: Out December 1st 2008<br>
&gt;<br>
&gt; <a href="http://www.pyramidtransmissions.com/store" target="_blank">http://www.pyramidtransmissions.com/store</a><br>
&gt;<br>
&gt; Also available through the iTunes store<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- On Tue, 21/4/09, Simon Ball &lt;<a href="mailto:sballmada@googlemail.com" target="_blank">sballmada@googlemail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; From: Simon Ball &lt;<a href="mailto:sballmada@googlemail.com" target="_blank">sballmada@googlemail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Subject: A question...<br>
&gt;<br>
&gt; &gt; To: &quot;Ed Kelly&quot; &lt;<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>&gt;<br>
&gt;<br>
&gt; &gt; Date: Tuesday, 21 April, 2009, 12:45 PM<br>
&gt;<br>
&gt; &gt; Hi Ed<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Simon from digital arts here, I was hoping you might<br>
&gt; be<br>
&gt;<br>
&gt; &gt; able to help with a question that I put to the list<br>
&gt; but<br>
&gt;<br>
&gt; &gt; received no answer for. I think they might be getting<br>
&gt; bored<br>
&gt;<br>
&gt; &gt; of my inability to keep up with their answers! Or<br>
&gt; more<br>
&gt;<br>
&gt; &gt; likely, the answers are easy to find but I&#39;m not<br>
&gt; finding them...<br><br>
Hi list<br>
<br>
&gt; &gt; I&#39;m trying to understand how tables/arrays work<br>
&gt; with<br>
&gt;<br>
&gt; &gt; animations. As far as I can see, I can place a set of<br>
&gt;<br>
&gt; &gt; coordinates in<br>
&gt;<br>
&gt; &gt; text file and then use an array to apply this to<br>
&gt; elements<br>
&gt;<br>
&gt; &gt; in a scene. I<br>
&gt;<br>
&gt; &gt; have been looking at various examples, notably<br>
&gt;<br>
&gt; &gt; [splinepath], which uses<br>
&gt;<br>
&gt; &gt; [line] to govern the length and speed of the<br>
&gt; movement.<br>
&gt;<br>
&gt; &gt; However, I&#39;m<br>
&gt;<br>
&gt; &gt; struggling to understand the exact relationship<br>
&gt; between the<br>
&gt;<br>
&gt; &gt; co-ordinates written in the text file and what<br>
&gt; actually<br>
&gt;<br>
&gt; &gt; happens to an<br>
&gt;<br>
&gt; &gt; image when rendered. Sometimes I change the numbers<br>
&gt; and the<br>
&gt;<br>
&gt; &gt; animation<br>
&gt;<br>
&gt; &gt; stays the same, other times it appears erratic.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; I&#39;m trying to trigger animations so that they<br>
&gt; float and<br>
&gt;<br>
&gt; &gt; rotate into<br>
&gt;<br>
&gt; &gt; place. If anyone has any ideas on the best way to<br>
&gt; approach<br>
&gt;<br>
&gt; &gt; this, or can<br>
&gt;<br>
&gt; &gt; direct me to some useful help files, I would really<br>
&gt;<br>
&gt; &gt; appreciate it. I<br>
&gt;<br>
&gt; &gt; was looking at a pdf that was packaged with<br>
&gt; PD-extended<br>
&gt;<br>
&gt; &gt; called<br>
&gt;<br>
&gt; &gt; &#39;GemPrimer&#39;. The documentation was clear and<br>
&gt;<br>
&gt; &gt; insightful for someone of<br>
&gt;<br>
&gt; &gt; my level (beginner!) and hoping there might more files<br>
&gt; like<br>
&gt;<br>
&gt; &gt; this one...<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Mac OSX Intel Core Duo 10.4.11. PD-Extended 0.40.3.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Thanks<br>
&gt;<br>
&gt; &gt; Simon<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Basically, I&#39;m trying to acheive this...<br>
&gt;<br>
&gt; &gt; <a href="http://simonthebold.wordpress.com/2009/03/26/prototype/" target="_blank">http://simonthebold.wordpress.com/2009/03/26/prototype/</a><br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Where the silouettes represent people moving in front<br>
&gt; of<br>
&gt;<br>
&gt; &gt; the screen, the animations kind of mimic their<br>
&gt; movement. Any<br>
&gt;<br>
&gt; &gt; suggestions would be most useful.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Hope this isn&#39;t too much trouble.<br>
&gt;<br>
&gt; &gt; Regards<br>
&gt;<br>
&gt; &gt;Simon<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; MA Digital Art<br><br> </div></div></blockquote></div><br>