Re: How to create a 4 second Quicktime Mov with a single JPEG

2007-11-28 Thread Chipp Walters
Figured that one out too. You only need to select the part of the
movie and then copy the single frame image movie to the clipboard and
then do a
qtAddMovieSegment MovieControllerID, Scaled with Scaled = true

On Nov 28, 2007 1:31 AM, Chipp Walters [EMAIL PROTECTED] wrote:

 Now, how to put an image file into the length of an existing mp3
 movie? IOW, I set the filename of the player to fred.mp3, but I would
 like the image to stay the same for the length of the mp3 song. Any
 ideas?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to create a 4 second Quicktime Mov with a single JPEG

2007-11-28 Thread Josh Mellicker

Ah, you beat me to it!

On Nov 28, 2007, at 12:12 AM, Chipp Walters wrote:


Figured that one out too. You only need to select the part of the
movie and then copy the single frame image movie to the clipboard and
then do a
qtAddMovieSegment MovieControllerID, Scaled with Scaled = true

On Nov 28, 2007 1:31 AM, Chipp Walters [EMAIL PROTECTED] wrote:


Now, how to put an image file into the length of an existing mp3
movie? IOW, I set the filename of the player to fred.mp3, but I would
like the image to stay the same for the length of the mp3 song. Any
ideas?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Table Field Cell Properties

2007-11-28 Thread Mikey
Is there some way to set properties of an individual cell in a table
field?  For example, can I lock a particular row, set the text
attributes of a particular cell?

Forgive me if this is in the User Manual.  I didn't find it.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Table Field Cell Properties

2007-11-28 Thread Stephen Barncard
Eric Chatonet has devoted some research into the strange and lightly 
documented world of table fields.

He can help you with making this work.

Download his Tutorials Picker (with tons of other great tips)

http://www.sosmartsoftware.com/?r=revolution_didacticielsl=en

or separate lesson
#016 How to manage table fields


Having said that, you can also set some properties of individual text 
chunks in htmltext and regular text.


for instance, you can do this in a script
set the textStyle of line 1 of fld output to link


and that will turn whatever text is in line 1 of fld output into a link


then trap the event in a linkClicked handler:
on linkClicked theText -- open the URL stored with the clicked text
  if theText is not empty then revGoURL theText
end linkClicked



Is there some way to set properties of an individual cell in a table
field?  For example, can I lock a particular row, set the text
attributes of a particular cell?

Forgive me if this is in the User Manual.  I didn't find it.


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Any suggestions on how to onion skinning?

2007-11-28 Thread Ken Ray
I'm working on a program with my son that does simple card-based 
animation, but one of the things he asked how to do in Rev stumped me, 
and that is doing an onion skin - showing a grayed out version of 
the previous card's objects on the current card. 

I know how to do *some* of it (I can take actual Rev objects from the 
previous card, copy them, change their lines/fills/blends/etc. to work 
and then group them and put them behind the current set of objects on 
the current card), but what stumps me is how to handle imported/created 
images. 

At best, what I'd *like* to do is to basically convert images to 
grayscale, and at worst I'd settle for turning all non-white pixels a 
single color of gray. I know I can walk through the imageData and 
convert things pixel by pixel, but I fear that would be really slow on 
larger (say 800x600) images (although I haven't tried it yet).

Any suggestions?

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Program problems on Windows Vista

2007-11-28 Thread Derek Bump
Scott,

So far, just one user.  One one system the hidden Vista Administrator
is activated, as I was told, so I'm checking to see if the other person
has that account activated.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com

___
Compress your photos quickly and easily with JPEGCompress 2.9!

http://www.dreamscapesoftware.com/products/jpegcompress/



Scott Morrow wrote:
 Hello Derek,
 
 I use VB scripts to create a similar system profile though I'm darned
 ignorant of how that stuff works.  Would something in your system
 profiler have called something not supported in the current version of VB ?
 
 What did you do to find out information about multiple users?  I'm
 pretty sure my profiler doesn't return that info.
 
 -Scott
 
 On Nov 27, 2007, at 6:03 PM, Derek Bump wrote:
 
 Thanks Scott.

 I just created a system profiler that generates a report about nearly
 every aspect of the system and emails it to me.  I just finished testing
 it on XP Home and Vista Home Premium and it worked wonderfully.  I did
 get an interesting error on Vista though:

 This program requires MSVBVM50.dll, which is no longer included in this
 version of Windows.


 Derek Bump
 Dreamscape Software
 http://www.dreamscapesoftware.com

 ___
 Compress your photos quickly and easily with JPEGCompress 2.9!

 http://www.dreamscapesoftware.com/products/jpegcompress/



 Scott Morrow wrote:
 Hello Derek,
 I am trying to pin down a (similar?) problem that happens if the
 application is being run on a multiple-user system but it is not
 installed or launched by the primary user.  Just a thought in the dark.

 -Scott Morrow

 Elementary Software
 (Now with 20% less chalk dust !)
 web http://elementarysoftware.com/
 email   [EMAIL PROTECTED]

 -

 On Nov 27, 2007, at 4:11 PM, Derek Bump wrote:

 I'm wondering if anyone has been experiencing this problem and knows
 how
 to solve it.  I've got 2 customers, one is using Windows Vista Home
 Premium and the other is using Windows Vista Business.  They both
 experience the same problem with JPEGCompress 2.9.

 They can launch the program once, use it just fine, and then close it.
 When they attempt to launch the program again, they get a Windows error
 message saying that the program cannot be opened.  One user supplied me
 with the following Windows Error Data:

   Problem signature:
   Problem Event Name:APPCRASH
   Application Name:JPEGCompress.exe
   Application Version:2.9.0.0
   Application Timestamp:467ba830
   Fault Module Name:ntdll.dll
   Fault Module Version:6.0.6000.16386
   Fault Module Timestamp:4549bdc9
   Exception Code:c005
   Exception Offset:00061c02
   OS Version:6.0.6000.2.0.0.256.6
   Locale ID:1032
   Additional Information 1:64d7
   Additional Information 2:081335f078811e1fd639bc6c63d83627
   Additional Information 3:3fdc
   Additional Information 4:35fc8982503f4afb4ff8fb0737cc1a55

 So far I've tested JPEGCompress 2.9 on Windows Vista Home Basic, Home
 Premium, Business and Ultimate.  Premium, Business and Ultimate were
 all
 checked using VMWare.

 So far I am unable to identify any common ground between the two users
 other than they are using Windows Vista.  Any ideas?

 I've had them try the program in Safe Mode, uninstalling and
 re-installing, they all have enough memory and disk space, latest
 updates.  I'm running out of ideas.


 Derek Bump
 Dreamscape Software
 http://www.dreamscapesoftware.com

 ___
 Compress your photos quickly and easily with JPEGCompress 2.9!

 http://www.dreamscapesoftware.com/products/jpegcompress/

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
___
use-revolution mailing list

Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Scott Rossi
Recently, Ken Ray wrote:

 I'm working on a program with my son that does simple card-based
 animation, but one of the things he asked how to do in Rev stumped me,
 and that is doing an onion skin

I would try overlaying a translucent screen capture of the prev or next
card.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Ian Wood


On 28 Nov 2007, at 19:44, Scott Rossi wrote:


Recently, Ken Ray wrote:


I'm working on a program with my son that does simple card-based
animation, but one of the things he asked how to do in Rev stumped  
me,

and that is doing an onion skin


I would try overlaying a translucent screen capture of the prev or  
next

card.


Agreed. Or do it by taking a snapshot directly from the card - this  
should work even if it's not the frontmost card.



On 28 Nov 2007, at 18:17, Ken Ray wrote:

At best, what I'd *like* to do is to basically convert images to
grayscale, and at worst I'd settle for turning all non-white pixels a
single color of gray. I know I can walk through the imageData and
convert things pixel by pixel, but I fear that would be really slow on
larger (say 800x600) images (although I haven't tried it yet).


It might be worth having a look through the ink modes, I *think*  
there was some trick for getting near-greyscale by layering black and  
white graphics above and below the image, but I can't remember any  
details. :-(


Ian


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Ken Ray
On Wed, 28 Nov 2007 20:19:27 +, Ian Wood wrote:

 I'm working on a program with my son that does simple card-based
 animation, but one of the things he asked how to do in Rev stumped me,
 and that is doing an onion skin
 
 I would try overlaying a translucent screen capture of the prev or next
 card.
 
 Agreed. Or do it by taking a snapshot directly from the card - this 
 should work even if it's not the frontmost card.

The problem with those is that if the card has color in it, the 
translucency is also in color. I was hoping to keep it in 
grayscale/gray.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Chipp Walters
Hi Ken,

You could use Wilhelm Sanke's image tools to remove the color from the
screencaptured image. I think that would actually be pretty fast.

Or, you could probably do it really fast with an optimized imagedata
script where you average the values of each pixel and reapply. I would
think that would zip right along.

best,

Chipp
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Jim Ault
change the blending of the snapshot to see if that gets you the contrast or
color reversal or transparency...

Jim Ault
Las Vegas


On 11/28/07 12:41 PM, Ken Ray [EMAIL PROTECTED] wrote:

 On Wed, 28 Nov 2007 20:19:27 +, Ian Wood wrote:
 
 I'm working on a program with my son that does simple card-based
 animation, but one of the things he asked how to do in Rev stumped me,
 and that is doing an onion skin
 
 I would try overlaying a translucent screen capture of the prev or next
 card.
 
 Agreed. Or do it by taking a snapshot directly from the card - this
 should work even if it's not the frontmost card.
 
 The problem with those is that if the card has color in it, the
 translucency is also in color. I was hoping to keep it in
 grayscale/gray.
 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text orientation to vertical

2007-11-28 Thread mfstuart

Hi all,

Can runrev support the 90 degree (vertical) orientation of text?
I'd like to have this applied onto a push button.

Thanx,
Mark Stuart
-- 
View this message in context: 
http://www.nabble.com/Text-orientation-to-vertical-tf4893109.html#a14012584
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


prevent multiple instances of an application

2007-11-28 Thread Alister Pillow

Hello and greetings from sunny Adelaide,

Does anyone know how to prevent launching multiple instances of a  
Standalone in Windows?


I have added a url protocol to the Registry that launches my app when  
a (custom) link is clicked in a web-browser. I would like the app to  
remain open and respond to further messages. Instead, each time a  
link is clicked, another copy of the app is opened.


When searching the web for an answer to this, all I could find is  
examples (in VB or Delphi etc) of an app checking to see if another  
copy of itself is running. Surely there must be an easier way?


Thanks,
Alister.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: prevent multiple instances of an application

2007-11-28 Thread Mark Schonewille

Hi Alister,

You will want to check out the relaunch message in the docs.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 28-nov-2007, om 23:30 heeft Alister Pillow het volgende geschreven:


Hello and greetings from sunny Adelaide,

Does anyone know how to prevent launching multiple instances of a  
Standalone in Windows?


I have added a url protocol to the Registry that launches my app  
when a (custom) link is clicked in a web-browser. I would like the  
app to remain open and respond to further messages. Instead, each  
time a link is clicked, another copy of the app is opened.


When searching the web for an answer to this, all I could find is  
examples (in VB or Delphi etc) of an app checking to see if another  
copy of itself is running. Surely there must be an easier way?


Thanks,
Alister.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: prevent multiple instances of an application

2007-11-28 Thread Andre Garzia
Alister,

I am quoting from memory here but I do think there's some message
'relaunch' that is triggered on the first instance in the case a
second instance is launched or something like that.

This of couse only works on windows since mac os x does not allow
multiple instances (legacy behavior from classic times) and linux is
the wild west.

If you need to implement it by hand, create a lock file scheme like this:

Step #1) check for the presence of a file lock file (or whichever
name you want).
Step #2) If the file is present, check it's content, it will be a time
stamp, if the timestamp is more than 10 minutes old... assume the
application crashed and launch normally or do crash recovery routines.
Step #3) If the time stamp on the file is younger than 10 minutes then
theres an active copy of the software running, shut down the second
issue and maybe signal the first instance somehow.
Step #4) If the file is not present launch normally and create lock
file with the current time.
Step #5) Every 5 minutes update that timestamp.
Step #6) When shutting down, delete the lock file.

I think this more or less solve your problems.
Andre

On 11/28/07, Alister Pillow [EMAIL PROTECTED] wrote:
 Hello and greetings from sunny Adelaide,

 Does anyone know how to prevent launching multiple instances of a
 Standalone in Windows?

 I have added a url protocol to the Registry that launches my app when
 a (custom) link is clicked in a web-browser. I would like the app to
 remain open and respond to further messages. Instead, each time a
 link is clicked, another copy of the app is opened.

 When searching the web for an answer to this, all I could find is
 examples (in VB or Delphi etc) of an app checking to see if another
 copy of itself is running. Surely there must be an easier way?

 Thanks,
 Alister.
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution



-- 
http://www.andregarzia.com All We Do Is Code.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Andre Garzia
Ken,

Have you tried snapshoting the card, then somewhere off screen you put
a gray image on top of the snapshot with some blend and take another
shot. Depending on ink combinations you might have a nice result.

Another way, which I don't know how fast it is, is to read each pixel
in the snapshot and convert it using some proportional gray value.

Andre

On 11/28/07, Jim Ault [EMAIL PROTECTED] wrote:
 change the blending of the snapshot to see if that gets you the contrast or
 color reversal or transparency...

 Jim Ault
 Las Vegas


 On 11/28/07 12:41 PM, Ken Ray [EMAIL PROTECTED] wrote:

  On Wed, 28 Nov 2007 20:19:27 +, Ian Wood wrote:
 
  I'm working on a program with my son that does simple card-based
  animation, but one of the things he asked how to do in Rev stumped me,
  and that is doing an onion skin
 
  I would try overlaying a translucent screen capture of the prev or next
  card.
 
  Agreed. Or do it by taking a snapshot directly from the card - this
  should work even if it's not the frontmost card.
 
  The problem with those is that if the card has color in it, the
  translucency is also in color. I was hoping to keep it in
  grayscale/gray.
 


 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution



-- 
http://www.andregarzia.com All We Do Is Code.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text orientation to vertical

2007-11-28 Thread Scott Rossi
Recently, mfstuart wrote:

 Can runrev support the 90 degree (vertical) orientation of text?
 I'd like to have this applied onto a push button.

Not real text -- you need to use a rotated image.  In theory you could apply
the image to the button as an icon.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Ian Wood


On 28 Nov 2007, at 21:24, Chipp Walters wrote:


Or, you could probably do it really fast with an optimized imagedata
script where you average the values of each pixel and reapply. I would
think that would zip right along.


I managed to find a function from March last year from a discussion  
about making alphadata from images.
Originally written by Wilhelm Sanke, with a few tweaks by me to make  
it universal for any image size.


Pass it the long ID of an image and it will return a one-channel  
image suitable for a mask.


On 13 Mar 2006, at 20:51, Ian Wood wrote:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask


Add another tweak to put it back into RGB:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) into tPix
  put tPix  tPix  tPix  tPix after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask

And you can do something like:

put makeMask(long id of img 1) into tData
set the imagedata of img 1 to tData

to turn the specified image into greyscale. Takes about a second for  
a 640x480px image on a MBP 2GHz Core Duo, so not too speedy.


Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to create a 4 second Quicktime Mov with a single JPEG

2007-11-28 Thread Andre Garzia
Chipp,

Its half-OT. I am using a combination of altBrowser and flash player
to play movies and mp3 files with thumbnails inside rev. This is
working fine and is behaving better as a cross platform solution for
us.

What I do is: I generate on runtime an HTML with JW Flash Media
Player. Our movies are meant to be loaded over the internet so, I can
load the needed player over the internet too. I set it to a rect of
the stack, the user doesn't even notice that part of the card is
actually a web view, it all feels like a simple embed player. There's
just a simple trip to fetch the player (couple kb) and the movies.

Depending on the movie format, I switch to QT inside the altBrowser
window. So in the end we're able to play a lot of movie files that
were not playing inside revs own qt player.

Cheers
andre
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text orientation to vertical

2007-11-28 Thread mfstuart

Thanx for your answer Scott.
Would be a nice enhancement to have an orientation property for a text type
object.


Scott Rossi wrote:
 
 Recently, mfstuart wrote:
 
 Can runrev support the 90 degree (vertical) orientation of text?
 I'd like to have this applied onto a push button.
 
 Not real text -- you need to use a rotated image.  In theory you could
 apply
 the image to the button as an icon.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, Multimedia  Design
 
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 

-- 
View this message in context: 
http://www.nabble.com/Text-orientation-to-vertical-tf4893109.html#a14016429
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Ken Ray
On Wed, 28 Nov 2007 20:50:11 -0200, Andre Garzia wrote:

 Ken,
 
 Have you tried snapshoting the card, then somewhere off screen you put
 a gray image on top of the snapshot with some blend and take another
 shot. Depending on ink combinations you might have a nice result.

Good idea - I'll compare that speed-wise with other suggestions people 
have made.
 
 Another way, which I don't know how fast it is, is to read each pixel
 in the snapshot and convert it using some proportional gray value.

Yeah, that was Chipp's suggestion - which I might use too - took about 
500ms on a 400x400 image on my MacBookPro.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Ken Ray
 to turn the specified image into greyscale. Takes about a second for 
 a 640x480px image on a MBP 2GHz Core Duo, so not too speedy.

Thanks, Ian! I'll give that a try...


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


menu accelerators problem

2007-11-28 Thread ron barber
Hi All,

the 2.8.1 engine change log says:
The menu accelerators now also work as you would intuitively expect. i.e.
  * the active menubar gets sent a mouseDown message before being
searched for non-disabled accelerators
  * the active menubar gets sent a menuPick message if one of its
accelerators is activated if the commandKeyDown/controlKeyDown message
is passed


I have a Windows app with several windows, some of the windows have
two menus (groups of btns) on them, one English the other Japanese.
Depending on the interface the user chooses, the appropriate menu is
shown and the other is hidden. I enable/disable menu items appropriate
to the context - eg 'copy' is disabled when no text is selected - when
the menu has a mousedown.

My problem is that the accelerators do not work on any items that are
en/disabled. (items that are never disabled respond correctly to the
accelerator keys).

When I check the contents of the btn they are still disabled - meaning
the menubar is not receiving the mousedown message before being
searched. The active menubar must be my problem but I can't seem to
make the visible menubar receive the mousedown. I have tried bringing
it to the front, disabling the hidden menubar etc but it does not seem
to work.

Any suggestions on how to get the visible menubar on the topstack to
respond to accelerators on a Windows app?

Thanks
Ron
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Mark Smith

This is sort of interesting:

if you simply take one of the color bytes of each pixel, and copy it  
to the other two color bytes, you get a gray-scale result. The  
brightness/contrast varies with which color you choose. For the few  
images I've tried, it seems to be red =brighter/less contrast  to  
blue= darker/more contrast. This may be no surprise to the pro image  
wranglers among us, but seemed intriguing to me.


function MakeGS @indata  the imageData of the source image
   repeat with n = 1 to length(inData) - 3 step 4
  get char n+3 of inData   blue byte, 1 for red, 2 for green
  put null  it  it  it after outData
   end repeat
   return outData
end MakeGS

and it runs perhaps twice as fast as taking an average.

Best,

Mark



On 28 Nov 2007, at 23:06, Ian Wood wrote:



On 28 Nov 2007, at 21:24, Chipp Walters wrote:


Or, you could probably do it really fast with an optimized imagedata
script where you average the values of each pixel and reapply. I  
would

think that would zip right along.


I managed to find a function from March last year from a discussion  
about making alphadata from images.
Originally written by Wilhelm Sanke, with a few tweaks by me to  
make it universal for any image size.


Pass it the long ID of an image and it will return a one-channel  
image suitable for a mask.


On 13 Mar 2006, at 20:51, Ian Wood wrote:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask


Add another tweak to put it back into RGB:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) into tPix
  put tPix  tPix  tPix  tPix after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask

And you can do something like:

put makeMask(long id of img 1) into tData
set the imagedata of img 1 to tData

to turn the specified image into greyscale. Takes about a second  
for a 640x480px image on a MBP 2GHz Core Duo, so not too speedy.


Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: menu accelerators problem

2007-11-28 Thread Sarah Reichelt
 I have a Windows app with several windows, some of the windows have
 two menus (groups of btns) on them, one English the other Japanese.
 Depending on the interface the user chooses, the appropriate menu is
 shown and the other is hidden. I enable/disable menu items appropriate
 to the context - eg 'copy' is disabled when no text is selected - when
 the menu has a mousedown.

 My problem is that the accelerators do not work on any items that are
 en/disabled. (items that are never disabled respond correctly to the
 accelerator keys).

Instead of enabling/disabling, what happens if you use set the
menubar of this stack to ...
or even set the defaultMenubar to ...

Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Chipp Walters
Mark,

Unless you average the 3, your gray-scale result may not work
properly. Try it on an image with 3 circles: 100%R, 100%G, 100%B and
you'll see what I mean.

On Nov 28, 2007 9:32 PM, Mark Smith [EMAIL PROTECTED] wrote:
 This is sort of interesting:

 if you simply take one of the color bytes of each pixel, and copy it
 to the other two color bytes, you get a gray-scale result. The
 brightness/contrast varies with which color you choose. For the few
 images I've tried, it seems to be red =brighter/less contrast  to
 blue= darker/more contrast. This may be no surprise to the pro image
 wranglers among us, but seemed intriguing to me.

 function MakeGS @indata  the imageData of the source image
 repeat with n = 1 to length(inData) - 3 step 4
get char n+3 of inData   blue byte, 1 for red, 2 for green
put null  it  it  it after outData
 end repeat
 return outData
 end MakeGS

 and it runs perhaps twice as fast as taking an average.

 Best,

 Mark




 On 28 Nov 2007, at 23:06, Ian Wood wrote:

 
  On 28 Nov 2007, at 21:24, Chipp Walters wrote:
 
  Or, you could probably do it really fast with an optimized imagedata
  script where you average the values of each pixel and reapply. I
  would
  think that would zip right along.
 
  I managed to find a function from March last year from a discussion
  about making alphadata from images.
  Originally written by Wilhelm Sanke, with a few tweaks by me to
  make it universal for any image size.
 
  Pass it the long ID of an image and it will return a one-channel
  image suitable for a mask.
 
  On 13 Mar 2006, at 20:51, Ian Wood wrote:
  function makeMask tMaskImg
set the cursor to watch
put width of tMaskImg into tW
put height of tMaskImg into tH
put the milliseconds into Start
put the imageData of tMaskImg into iData
put empty into tmaskdata
put tW * 4 into re
repeat with i = 0 to (tH - 1)
  repeat with j = 0 to (tW - 1)
put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
put chartonum(char (i*re + (j*4+3)) of idata) into tC2
put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
put the round of ((tc1 + tc2 + tc3)/3) into tM
put numToChar(tM) after tMaskData
  end repeat
end repeat
return tMaskData
  end makeMask
 
  Add another tweak to put it back into RGB:
 
  function makeMask tMaskImg
set the cursor to watch
put width of tMaskImg into tW
put height of tMaskImg into tH
put the milliseconds into Start
put the imageData of tMaskImg into iData
put empty into tmaskdata
put tW * 4 into re
repeat with i = 0 to (tH - 1)
  repeat with j = 0 to (tW - 1)
put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
put chartonum(char (i*re + (j*4+3)) of idata) into tC2
put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
put the round of ((tc1 + tc2 + tc3)/3) into tM
put numToChar(tM) into tPix
put tPix  tPix  tPix  tPix after tMaskData
  end repeat
end repeat
return tMaskData
  end makeMask
 
  And you can do something like:
 
  put makeMask(long id of img 1) into tData
  set the imagedata of img 1 to tData
 
  to turn the specified image into greyscale. Takes about a second
  for a 640x480px image on a MBP 2GHz Core Duo, so not too speedy.
 
  Ian
  ___
  use-revolution mailing list
  use-revolution@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-revolution

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to create a 4 second Quicktime Mov with a single JPEG

2007-11-28 Thread Chipp Walters
Hi Andre,

Thanks. I think I saw something about your process in an earlier
thread. Problem is, I'm building a timeline based QT editor which has
a video and 2 audio tracks-- kinda the standard video editor
interface..and I need it to punch out standalone, flattened QT Movs.
My current technique is working fine.

-Chipp
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any suggestions on how to onion skinning?

2007-11-28 Thread Mark Smith
That makes sense. Duh!  I only tried it on some photos...ah well, no  
free lunch again :)


Best,

Mark

On 29 Nov 2007, at 03:59, Chipp Walters wrote:


Mark,

Unless you average the 3, your gray-scale result may not work
properly. Try it on an image with 3 circles: 100%R, 100%G, 100%B and
you'll see what I mean.

On Nov 28, 2007 9:32 PM, Mark Smith [EMAIL PROTECTED] wrote:

This is sort of interesting:

if you simply take one of the color bytes of each pixel, and copy it
to the other two color bytes, you get a gray-scale result. The
brightness/contrast varies with which color you choose. For the few
images I've tried, it seems to be red =brighter/less contrast  to
blue= darker/more contrast. This may be no surprise to the pro image
wranglers among us, but seemed intriguing to me.

function MakeGS @indata  the imageData of the source image
repeat with n = 1 to length(inData) - 3 step 4
   get char n+3 of inData   blue byte, 1 for red, 2 for green
   put null  it  it  it after outData
end repeat
return outData
end MakeGS

and it runs perhaps twice as fast as taking an average.

Best,

Mark




On 28 Nov 2007, at 23:06, Ian Wood wrote:



On 28 Nov 2007, at 21:24, Chipp Walters wrote:

Or, you could probably do it really fast with an optimized  
imagedata

script where you average the values of each pixel and reapply. I
would
think that would zip right along.


I managed to find a function from March last year from a discussion
about making alphadata from images.
Originally written by Wilhelm Sanke, with a few tweaks by me to
make it universal for any image size.

Pass it the long ID of an image and it will return a one-channel
image suitable for a mask.

On 13 Mar 2006, at 20:51, Ian Wood wrote:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask


Add another tweak to put it back into RGB:

function makeMask tMaskImg
  set the cursor to watch
  put width of tMaskImg into tW
  put height of tMaskImg into tH
  put the milliseconds into Start
  put the imageData of tMaskImg into iData
  put empty into tmaskdata
  put tW * 4 into re
  repeat with i = 0 to (tH - 1)
repeat with j = 0 to (tW - 1)
  put  chartonum(char (i*re + (j*4+2)) of idata) into tC1
  put chartonum(char (i*re + (j*4+3)) of idata) into tC2
  put  chartonum(char (i*re + (j*4+4)) of idata) into tC3
  put the round of ((tc1 + tc2 + tc3)/3) into tM
  put numToChar(tM) into tPix
  put tPix  tPix  tPix  tPix after tMaskData
end repeat
  end repeat
  return tMaskData
end makeMask

And you can do something like:

put makeMask(long id of img 1) into tData
set the imagedata of img 1 to tData

to turn the specified image into greyscale. Takes about a second
for a 640x480px image on a MBP 2GHz Core Duo, so not too speedy.

Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: menu accelerators problem

2007-11-28 Thread ron barber
Hi Sarah,

Well, this seems to work - thank you for the suggestion.

I use set the menubar all the time for my Mac apps but the docs say:
Platform Support: MacOS and OS X
Use the menubar property to specify which menus appear in the menu bar
on Mac OS systems when a stack is the active window.

My app is Win which leads me to ask if this is a doc mistake and if
not, then why does it (apparently) matter on Windows?

Should I report this and if so, as what?

Thanks again,
Ron




On 11/29/07, Sarah Reichelt [EMAIL PROTECTED] wrote:
  I have a Windows app with several windows, some of the windows have
  two menus (groups of btns) on them, one English the other Japanese.
  Depending on the interface the user chooses, the appropriate menu is
  shown and the other is hidden. I enable/disable menu items appropriate
  to the context - eg 'copy' is disabled when no text is selected - when
  the menu has a mousedown.
 
  My problem is that the accelerators do not work on any items that are
  en/disabled. (items that are never disabled respond correctly to the
  accelerator keys).

 Instead of enabling/disabling, what happens if you use set the
 menubar of this stack to ...
 or even set the defaultMenubar to ...

 Sarah
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution