Re: Changing Image FileName Based on QT Time...?

2004-10-19 Thread Klaus Major
Hi John,
Thanks Klaus!
I'll check out the currenttime of player call in the morning. I was 
not aware of currentTime of player.
Would this be used on an idle script?
NO!!!
Never use on idle or you will get eternal damnation!!! :-D
(At least as evil as repeat until the mouse is UP!)
Instead use send xyz... in abc...
Something like:
If currentTime is  2 then
set fileName of image xyz to slides/slide1.jpg
else
if currentTime is  25000 then
set fileName of image xyz to slides/slide2.jpg
...
Well almost, but i would rather use a switch...case... handler in 
this case
MUCH MORE readable and less harmful, since there are so many 
possibilities
to use if...then that
1. most of the time you cannot oversee it with one glance
2. you forget one end if almost EVERYTIME ;-)

Like this:
##Start the player:
on mouseup ## or whenever...
  start player xyz
  check_the_time
end mouseup
on check_the_time
  put the currenttime of player xyz into CT
  switch
case CT  2 AND CT  1
 set fileName of image xyz to slides/slide1.jpg
break
case CT  3 AND CT  2
 set fileName of image xyz to slides/slide2.jpg
break
...
   end switch
if CT  the duration of player xyz then
## Sound is not yet finished, so we might have to check again...
 send check_the_time to me in abc millisecs
   end if
end check_the_time
Get the picture?
But see below...
Am i on the right track?
Yo, but i would suggset to let the player-object do all the work :-)
I mean set and use the callbacks of the player to trigger your change 
of images...

I just uploaded a tiny stack Fun with callbacks to REV-unline - 
klausimausi ;-)
That will get you started (hopefully) with callbacks, which are a very 
powerful,
yet quite unknown feature of REV.

Thanks again!
Drop a line (even offlist, if you like) if you need further 
inof/assistance...

John Patten
Tech Dept
SBCUSD
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing Image FileName Based on QT Time...?

2004-10-19 Thread Jesse Sng
The other way is to generate a SMIL file which can then be played 
back in the QT player. You can then set the QT Player to open the 
file which is a SMIL file. This is a text file containing XML code 
telling the QT player how/where/when other media can be synchronized.

That way, you don't have to use any idle scripts but just playback 
the SMIL file. Check the Apple web site for examples. You probably 
might want to develop a little editor in Revolution to generate the 
text file.

Jesse Sng
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing image fileName Based on QT Time...?

2004-10-19 Thread John Patten
 
Great Klaus!  

I'll check out the sample on your site. I do remember previous mentions about the 
dangers of idle.

In my attempts to synch up my slides with audio i began looking at creating a QT  SMIL 
movie using Rev to create the SMIL document. I made some progress after familiarizing 
myself with SMIL tags, but I was hoping to stay within Rev to do this. Not sure where 
the SMIL tests would have lead I'll check out the example and try some switch 
statements in conjuction with the callbacks.

Thanks Again!

John Patten
Tech Dept
SBCUSD

On Tuesday, October 19, 2004, at 03:40AM, [EMAIL PROTECTED] wrote:


Message: 18
Date: Tue, 19 Oct 2004 12:13:07 +0200
From: Klaus Major [EMAIL PROTECTED]
Subject: Re: Changing Image FileName Based on QT Time...?
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi John,

 Thanks Klaus!

 I'll check out the currenttime of player call in the morning. I was 
 not aware of currentTime of player.
 Would this be used on an idle script?

NO!!!

Never use on idle or you will get eternal damnation!!! :-D
(At least as evil as repeat until the mouse is UP!)

Instead use send xyz... in abc...

 Something like:

 If currentTime is  2 then
 set fileName of image xyz to slides/slide1.jpg
 else
 if currentTime is  25000 then
 set fileName of image xyz to slides/slide2.jpg
 ...

Well almost, but i would rather use a switch...case... handler in 
this case
MUCH MORE readable and less harmful, since there are so many 
possibilities
to use if...then that
1. most of the time you cannot oversee it with one glance
2. you forget one end if almost EVERYTIME ;-)

Like this:

##Start the player:
on mouseup ## or whenever...
   start player xyz
   check_the_time
end mouseup

on check_the_time
   put the currenttime of player xyz into CT
   switch
 case CT  2 AND CT  1
  set fileName of image xyz to slides/slide1.jpg
 break
 case CT  3 AND CT  2
  set fileName of image xyz to slides/slide2.jpg
 break
 ...
end switch
 if CT  the duration of player xyz then
 ## Sound is not yet finished, so we might have to check again...
  send check_the_time to me in abc millisecs
end if
end check_the_time

Get the picture?
But see below...

 Am i on the right track?

Yo, but i would suggset to let the player-object do all the work :-)

I mean set and use the callbacks of the player to trigger your change 
of images...

I just uploaded a tiny stack Fun with callbacks to REV-unline - 
klausimausi ;-)
That will get you started (hopefully) with callbacks, which are a very 
powerful,
yet quite unknown feature of REV.

 Thanks again!

Drop a line (even offlist, if you like) if you need further 
inof/assistance...

 John Patten
 Tech Dept
 SBCUSD

Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Changing Image FileName Based on QT Time...?

2004-10-18 Thread John Patten
Hi All!

Is it possible to change the FileName of an image depending on the time in a QuickTime 
movie. I have a bunch of slides I'm trying to synch up with an audio only movie.

Does anyone have any advice?

Thanks in Advance!!

John Patten
Tech Dept
SBCUSD
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing Image FileName Based on QT Time...?

2004-10-18 Thread Klaus Major
Hi John,
Hi All!
Is it possible to change the FileName of an image depending on the 
time in a QuickTime movie.
Do you mean naming the images after the currenttime of player xyz - 
12345.jpg?

Sure, why not, should not be a problem :-)
If you would like to automate this task, then you need 2 lists, the 
currenttimes of
the player, where a specific image should appear and a list of all the 
images,
preferrably in the correct order :-)

I have a bunch of slides I'm trying to synch up with an audio only 
movie.
Set the callbacks of that player with a nifty script and that should 
work fine ;-)

Does anyone have any advice?
Please drop a line if my hints are not really helpful ;-)
I will think about it in the meantime!
Thanks in Advance!!
John Patten
Tech Dept
SBCUSD
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
P.S.
Only 3 (THREE) weeks left until ERC!!!
http://techietours.com/Rev/
B there or B square :-)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Changing image fileName Based on QT Time...?

2004-10-18 Thread John Patten
Hi All!
Is it possible to change the FileName of an image depending on the time 
in a QuickTime movie. I have a bunch of slides I'm trying to synch up 
with an audio only movie.

Does anyone have any advice?
Thanks in Advance!!
John Patten
Tech Dept
SBCUSD
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing image fileName Based on QT Time...?

2004-10-18 Thread Klaus Major
Hi John,
maybe you missed this one from 3 hours ago :-)
Hi John,
Hi All!
Is it possible to change the FileName of an image depending on the 
time in a QuickTime movie.
Do you mean naming the images after the currenttime of player xyz - 
12345.jpg?

Sure, why not, should not be a problem :-)
If you would like to automate this task, then you need 2 lists, the 
currenttimes of
the player, where a specific image should appear and a list of all the 
images,
preferrably in the correct order :-)

I have a bunch of slides I'm trying to synch up with an audio only 
movie.
Set the callbacks of that player with a nifty script and that should 
work fine ;-)

Does anyone have any advice?
Please drop a line if my hints are not really helpful ;-)
I will think about it in the meantime!
Thanks in Advance!!
John Patten
Tech Dept
SBCUSD
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
P.S.
Only 3 (THREE) weeks left until ERC!!!
http://techietours.com/Rev/
B there or B square :-)
Best
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing Image FileName Based on QT Time...?

2004-10-18 Thread John Patten
Thanks Klaus!

I'll check out the currenttime of player call in the morning. I was not aware of 
currentTime of player.

Would this be used on an idle script? 

Something like:

If currentTime is  2 then
set fileName of image xyz to slides/slide1.jpg
else
if currentTime is  25000 then
set fileName of image xyz to slides/slide2.jpg
...

Am i on the right track?

Thanks again!

John Patten
Tech Dept
SBCUSD


On Monday, October 18, 2004, at 04:20PM, [EMAIL PROTECTED] wrote:

--

Message: 1
Date: Mon, 18 Oct 2004 18:09:19 +0200
From: Klaus Major [EMAIL PROTECTED]
Subject: Re: Changing Image FileName Based on QT Time...?
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi John,

 Hi All!

 Is it possible to change the FileName of an image depending on the 
 time in a QuickTime movie.

Do you mean naming the images after the currenttime of player xyz - 
12345.jpg?

Sure, why not, should not be a problem :-)

If you would like to automate this task, then you need 2 lists, the 
currenttimes of
the player, where a specific image should appear and a list of all the 
images,
preferrably in the correct order :-)

 I have a bunch of slides I'm trying to synch up with an audio only 
 movie.

Set the callbacks of that player with a nifty script and that should 
work fine ;-)

 Does anyone have any advice?

Please drop a line if my hints are not really helpful ;-)
I will think about it in the meantime!

 Thanks in Advance!!

 John Patten
 Tech Dept
 SBCUSD

Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


P.S.
Only 3 (THREE) weeks left until ERC!!!

http://techietours.com/Rev/

B there or B square :-)


--
--

Message: 13
Date: Mon, 18 Oct 2004 20:57:15 +0200
From: Klaus Major [EMAIL PROTECTED]
Subject: Re: Changing image fileName Based on QT Time...?
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi John,

maybe you missed this one from 3 hours ago :-)

 Hi John,

 Hi All!

 Is it possible to change the FileName of an image depending on the 
 time in a QuickTime movie.

 Do you mean naming the images after the currenttime of player xyz - 
 12345.jpg?

 Sure, why not, should not be a problem :-)

 If you would like to automate this task, then you need 2 lists, the 
 currenttimes of
 the player, where a specific image should appear and a list of all the 
 images,
 preferrably in the correct order :-)

 I have a bunch of slides I'm trying to synch up with an audio only 
 movie.

 Set the callbacks of that player with a nifty script and that should 
 work fine ;-)

 Does anyone have any advice?

 Please drop a line if my hints are not really helpful ;-)
 I will think about it in the meantime!

 Thanks in Advance!!

 John Patten
 Tech Dept
 SBCUSD

 Regards

 Klaus Major
 [EMAIL PROTECTED]
 http://www.major-k.de


 P.S.
 Only 3 (THREE) weeks left until ERC!!!

 http://techietours.com/Rev/

 B there or B square :-)

Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


--

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution