More Exporting - Multiple files - Interface
We might want to export all the files to a different format or to restrain them to a size.
So we might want to change the Export window adding card for different export options.
Open the Export Window and if it is a movable window change it to a standard one.
Check the edit background box in MPI's main palette (or type command-B)
You then can add a tab button by dragging it from MPI's tool module (In the RTE choose the tab button tool and drag out a button.
With the button selected click on the TabData button on MPI's property Module and set the names for the Tab Button. I have 3 tabs: Image, All Images and Web. In the RTE double click the button, then click the TabData button in the button Info dialog.
Now add two cards to the Export window.
In the backgroung tab button put this script
go cd currentValue of me
And in the background script put
go cd the currentValue of bg btn id 319
We now can create cards for the different exports.
First the Multiple Images.
We need the same choice of image file types so we can copy the buttons from the first card to the second. (We could make them background buttons and change the script on the first card if we wanted)
We need a choice about scaling the images or not. Add a radio button in the same way as we added a tab button, and edit its RadioData
Full sized Images
Scale to no larger than:
Below the button add two fields with text graphic lables: Max Width and Max Height.
Give the radio Button this script:
if the currentValue of me is 1
put "" into cd fld "maxWidth"
put "" into cd fld "maxHeight"
set the lockText of cd fld "maxWidth" to true
set the lockText of cd fld "maxheight" to true
set the showfill of cd fld "maxHeight" to false
set the showfill of cd fld "maxWidth" to false
set the lockText of cd fld "maxWidth" to false
set the lockText of cd fld "maxheight" to false
set the showfill of cd fld "maxHeight" to true
set the showfill of cd fld "maxWidth" to true
We also want to let the user choose between using the original file names and using numbers (with or without a prefix.
I've added a couple more buttons to do this, a radion with two choices:
Use Original Names
and a checkbox with an associated field
See the third graphic.
The Radio button has this script:
if the currentValue of me is 2
then set the disabled of btn "Use prefix" to false
else set the disabled of btn "Use prefix" to true
The Use Prefix checkbox this script:
if the hilite of me
set the lockText of cd fld "prefix" to false
set the showfill of cd fld "prefix" to true
set the lockText of cd fld "prefix" to true
set the showfill of cd fld "prefix" to false
The other change to the interface is to move the Cancel
button on the first card to the background so that it appears on all card. We need to add a Export
button to hold our export script too.
Now we have our interface it is time to script the multiple file export.