PDA

View Full Version : problem in short piece of sylia script


gamepit
2nd September 2003, 11:38
This part of the code gives me a variable not found error when runing the script.

I have a program which the users specifies a time and a script is generated that cuts a 1 min piece starting from the user specified time.

lEndStart is the user specified start time in ms + 60000 ms (1 min)

lLength is the length of the entire clip, returned from GetRange(1) (maybe this is where im wrong)

lEnd is the end offset, calculated by subtracting lEndStart from the entire length of the clip.

heres the part of the script:

Declare lEndStart;
Declare lLength;
Declare lEnd;
lEndStart = 240000;
lLength = Virtualdub.video.GetRange(1);
lEnd = lLength - lEndStart;
VirtualDub.video.SetRange(180000,lEnd);

If anyone could point out the problem Id appreciate it. Im using nandub, but I dont think thats the problem.

Thanks

gamepit
3rd September 2003, 02:48
figured out my problem, now having another one. will make a new thread.