Page 1 of 1

Animations Won't Stop Looping

PostPosted: Wed Sep 09, 2009 5:45 am
by sculp
Hi folks, hope someone can help.. I've been trying my hand at some ipo animations, which seem to export ok, but no matter what I do I cannot stop them from looping. This was fine at first, because I was pleased to see that it works and it's so much cooler than Python anims.My understanding is that adding the following code in alcscript would prevent the anim from starting on link-in
Code: Select all
<object>:
    animations:
        - name: <animation name>
          autostart: 0
          loop: 0   


should this code work on it's own or does it need to be used in conjunction with some more script before it has the desired effect? (ie stop the b****y thing!)
I'm pretty new at alcscript, maybe I'm labouring under some fundamental misunderstanding..?

Re: Animations Won't Stop Looping

PostPosted: Wed Sep 09, 2009 8:42 am
by D'Lanor
Yes, that should stop it. Try using the correct indentation (and maybe drop those spaces at the end). AlcScript is very picky about indentation.

Code: Select all
<object>:
    animations:
      - name: <animation name>
        autostart: 0
        loop: 0

Re: Animations Won't Stop Looping

PostPosted: Wed Sep 09, 2009 1:49 pm
by sculp
Yup, the spacing was at fault. Thanks for your Eagle Eye D'Lanor

Re: Animations Won't Stop Looping

PostPosted: Fri Sep 11, 2009 4:21 am
by sculp
Postscript to the above:
I'm not sure what I did, but shortly after I posted last the looping and autostart behaviour returned, despite having correctly spaced my alcscript. Several hours of frustration later I decided to try deleting the .sav file for the age, as I had begun to notice that altering the details of the ipo animation made no difference on export..?? That did the trick. Why would this be? (I know it's not necessary always to know what's happening under the bonnet, but knowledge is power...) :geek:

Re: Animations Won't Stop Looping

PostPosted: Fri Sep 11, 2009 5:41 am
by diafero
Uru uses the sav file to save an animation's state, which means that if you change some details only, it will still use the old animation's last state instead of starting from scratch. Especially when you are working on sounds or animations, you should always remove the sav file of your age after (or while) exporting.

Re: Animations Won't Stop Looping

PostPosted: Fri Sep 11, 2009 6:30 pm
by sculp
Ok thanks