Familiar with Cursor scripts? One question please

Is it possible to create a frame or frames as an "intro" and then loop the animation indefinately without replaying the 1st frame(s). Say for example, in a 12 frame animation that you wanted to play frames 1-3 for 100ms, then loop 4-12 at 60ms. Is that possible beyond copying "4-12,60" a gazillion times?
2,471 views 7 replies
Reply #2 Top
Interval / Use script

In the case you are using an animation, you can configure the sequence of frames in two ways.

You can simply specify a the time period in milliseconds between the frames of the animation. In this case the animation will move through the image frames from left to right and then recommence at the left. If however, you check the ‘Alternate animation’ option, the animation will move from left to right and then back to the left frame by frame indefinitely.

You can assign a script that will describe the animation. In this case the image will contain all the frames needed and used in the animation, but the order in that frames are placed in the image will not necessarely define the sequence.
The actual sequence is described by the script. A script is made of 'tokens'. Each token describes one frame or an interval of frames and its timing. On running the animation, CursorXP will play tokens subsequentially from the first to the last, and then restart the script. Here are some examples of tokens:

5,100 Shows the frame 5 for 100 milliseconds.
10-20,50 Animates from frame 10 to frame 20. Each frame is visible for 50 milliseconds.
15-8,80 Animates from frame 15 to frame 8 (reversed). Each frame is visible for 80 milliseconds.

You can separate tokens with a carriage return or the ';' carachter.
The time period is optional if the token is not the first of the script. If you do not specify a time period, CursorXP will assign to that token the time of the previous token.
Here is an example of a full script:

5-10,60 Displays frames 5 to 10 with 60 milliseconds interval.
22,200;25;27 Displays frames 22, 25 and then 27 for 200 milliseconds.
4-1 Displays frames 4 to 1 with 200 milliseconds interval (the last defined time period, the one set for frame 22).
11-20,50 Displays frames from 11 to 20, 50 milliseconds each.
1 Displays frame 1 for 50 milliseconds.

Scripts can be very complex, but can be also used to make simple effects. I.e. say you have a smoothly rotating hourglass cursor, but you want it to stop for 1 second after each rotation. Without scripts you would need to add lots of identical frames at the end of your animation when the hourglass finished rotating (since you made a smooth animation, you must be using a low time period, thus need really lots of identical frames to have it stopping for just 1 seconds, this would of course waste memory for nothing). With a simple script you can avoid to make identical frames, thus using minimal memory and have the cursor more easily editable. If you have 30 frames, your script would be this:

1-29,50 Rotates the hourglass at 1000/50=20 frames per second
30,1000 Displays frame 30 and holds that for 1 second.


Excerpt copied from: https://www.stardock.com/products/cursorxp/guide.html

I hope that helps, Ingui.


Powered by SkinBrowser!
Reply #3 Top
, thanxs Shmoop... but i read that already >
But i appreaciate you "pitching in" . The key here being: "CursorXP will play tokens subsequentially from the first to the last, AND THEN RESTART THE SCRIPT" . I was hoping it could accept a command similar to "GOTO" in Dos so that the script wouldnt neccesarily restart at the begining. Oh well... maybe in future versions. bye for now.
Reply #4 Top
Hmm I see whatchya mean now! Yeah that would be handy. It may even be possible... I tried a few ideas and kept getting errors but it never hurts (too much) to experiment. Muhwah ha ha ha

Powered by SkinBrowser!
Reply #5 Top
Ingui, I read and re-read the documentation and I didn't see anything that would allow you to do that either, unless there are "undocumented" routines. You need someone more "in the know" of the programming...like the guy who wrote the scripting routine If ya can't do that then it would be a great addition for the next version..I can certainly see how ya could do some pretty fancy stuff if there was some sort of goto or even a way to use a subroutine. The way I see it it's a sequential loop period.

Powered by SkinBrowser!
Reply #6 Top
yea, a little dissappointing for now. But still a great proggy. I'll just hafta wait and see, maybe they'll add it to the next version before years end so i can scoop it up for free
Thanx Ph00ey and thanx again Shmoop.
Reply #7 Top
Sorry I couldn't help

It would be a great advancement though! Maybe big brother Froggy is listening

Powered by SkinBrowser!