I want to go to a random marker in the movie. But when I get to the,
put count (gMarkerList) into X, part of the script I get the
error message.
Script error Handler not defined.
put count (gMarkerList) into X
#count
I've just numbered the markers 1, 2, 3 etc
I've checked gMarkerList and it has a list of the markers
I've also place gMarkerList at the beginning of my script to be a
global..
It is located in a movie script and is first called from the StartMovie
handler.
What I want to do is make a list of all the marker names then pick one
at random and go to it. Each marker marks the start of a 3 frame
sequence at the end of the 3rd frame I want the marker removed from the
list and the play back head moved to another random marker in the list.
I've done this in another movie but it was done by going to a random
frame and then removing it from the list. I use a repeat with i to the
number frames in the movie
to make my list instead of "the labelList".
Thanks for any help!
on sMarker
-- randomly determines which Marker is played first
put [] into gMarkerList
set gMarkerList=the labelList
goMarker
on goMarker
-- Pick a random number from gMarkerList and go to that Marker
--Here is the problem--
put count (gMarkerList) into X
put getAt(gMarkerList, random(X)) into Y
go to marker Y
on removeMarker
-- delete marker that has just been viewed from gMarkerList
if count(gMarkerList)=1 then
sMarker
else
sort gMarkerList
-- gMarkerName, Name of the last marker
put findPos(gMarkerList, gMarkerName) into p
deleteAt gMarkerList, p
goMarker
end if
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]