Carly,
I took the commands from the Rev Demo Stack(video capture) and made a separatet button to save the settings into the custom property
this creates the custom property "videosetting" of the stack. You can look at the custom properties of the stack in the properties inspector->custom properties.
if you find a custom property "videosetting" with some 'gibberish' in it then you created the custom property successfully.
I only choose my setting once in the development environment. I did then hid the button for the setting of the custom property. A custom property is persisten between restarts.
Code: Select all
on mouseUp
-- the video grabber component requires us to declare a variable
-- so that it can return data to it
local myvar
-- bring up the system QuickTime capture settings dialog
revVideoGrabDialog "display"
-- capture the settings the user has entered to the variable myVar
revVideoGrabSettings "myvar"
-- set the custom property "videoSettings" of this stack to contain the
-- data returned in the myVar variable
set the videoSettings of this stack to myvar
-- save this stack so that the next time the user opens it
-- the same settings will be preserved and loaded in the stack script
save this stack
end mouseUp
later I read out the custom property "videosetting" and hand it over to the external in the initialization routine, here as a button but preverably in a handler runs e.g at opencard, if that is the only card of the revlet.
Code: Select all
on mouseUp
-- read in the rectangluar area of the "video" image
-- used to place the video capture area
put rect of image "video" into tRect
-- check to see if we are to use QuickTime or Video for Windows
-- the command to initialize the video grabber, using QuickTime
revInitializeVideoGrabber short name of this stack,"qt",tRect
-- set the rectangle area to display the preview in to the variable we
-- stored earlier
revSetVideoGrabberRect tRect
-- the video grabber component requires us to declare a variable to use
-- to store or retrieve settings
local myvar
-- load the videoSettings custom property of this stack into the myVar variable
put the videoSettings of this stack into myVar
-- set the video grabber to use the settings we just loaded from the stack
revSetVideoGrabSettings "myvar"
end mouseUp
I left the original comments from the example stack in the scripts. Of course you can change your variable names, but for testing I would stick with the demo variable names.
if this does not work please say so.
regards
Bernd