Ah great, thanks again for the help!<br><br><div class="gmail_quote">On Wed, Sep 9, 2009 at 5:42 AM, gabor papp <span dir="ltr"><<a href="mailto:gabor.lists@mndl.hu">gabor.lists@mndl.hu</a>></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 Henderson,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In other news, another simple thing I was playing with from the tutorial pdf<br>
is attached - but I was trying to realise how to make the (gh 1) in the<br>
pdata deform reset to zero rather than be cumulative? Does it have to be<br>
</blockquote></div>
i would not do this to (gh). the attached script works cumulatively because you reuse the old value of "p" from the previous frame and add a random number to it. if you always start from the original p value, you can achieve what you want.<br>

for example:<br>
<br>
(clear)<div class="im"><br>
<br>
(define myob (build-sphere 20 20))<br>
<br></div>
(with-primitive myob<br>
    ; save original "p"<br>
    (pdata-copy "p" "p0"))<div class="im"><br>
<br>
(every-frame<br>
  (with-primitive myob<br>
      (pdata-map!<br></div>
        (lambda (p p0)<br>
          (vadd (vmul (rndvec) (gh 1)) p0))<br>
        "p" "p0")))<br>
<br>
<br>
i hope this answers your question.<br>
<br>
best,<br><font color="#888888">
gabor<br>
<br>
</font></blockquote></div><br>