I have a macro for slate generation and quicktime packaging that I have made, and everything works as it should. Except that it opens up a flipbook and doesn't release the shell until I manually close the flipbook.
Does anyone know how I can force it to not open a flipbook and bugger the rest of my (shell) script? Or at least why it's doing this in the first place? I imagine it has something to do with there being two fileouts, but I don't know.
Cheers,
Martin
The following copy of the macro has been modified to use a colour wheel as source instead of my slate image; otherwise it is identical.
CODE
image fxcPackageTest(
image Input=0,
const char * shot = "",
int version = 1,
int shotLength = 0,
const char * artist = "",
const char * notes = "",
int slateFrame = 0,
const char * showName = "Show Name",
int resHDx = 1280,
int resHDy = 720,
int resSDx = 720,
int resSDy = 486,
float aspectHD = 1.85,
float aspectSD = 1.66,
float aspectD1 = 1.333,
// const char * renderDate = "%Y-%m-%d", // iso standard
const char * renderDate = "%m/%d/%y", // confusing american format
const char * vendor = "Company Name",
int handles = 12,
)
{
// file in for testing purposes only
ColorWheel1 = ColorWheel(2048, 1556, 1, 0, 1, 1, 1);
// File In
SlateIn = SFileIn("/Volumes/fxc/atu/references/slates/fxc_slate.cin", "Auto", 1, 0, "v1.1", "0", "", "Standard");
// Input = SFileIn("/Volumes/fxc/atu/comp/" + shot + "/renders/" + shot + ".v" + stringf ("%02d", version) + "/" + shot + ".v" + stringf ("%02d", version) + ".1-" + stringf ("%01d", shotLength) + "#.cin", "Auto", 1, 0, "v1.1", "0", "", "Standard");
// Slate Generation
SlateTextHD = AddText(ColorWheel1, "{showName}\n{shot}\nv" + stringf ("%02d", version) + "\n{resHDx} x {resHDy}\n" + renderDate + "\n{vendor}\n{artist}\n{shotLength} frames (including {handles} fr. handles)\n{notes}", "Helvetica Neue", 67, xFontScale/GetDefaultAspect(), 1.79, 725, 1406.74, 0, 1, 3, 0.525, 0.47, 0.4, 1, 0, 0, 0, 45, 0, 1);
SetBGColorHD = SetBGColor(SlateTextHD, "rgbaz", 0.988281131, 0.894437969, 0.7614861, 1, 0);
FitSlateHD = Fit(SetBGColorHD, resHDx, resHDy, "default", xFilter, 0);
SlateTextSD = AddText(ColorWheel1, "{showName}\n{shot}\nv" + stringf ("%02d", version) + "\n{resSDx} x {resSDy}\n" + renderDate + "\n{vendor}\n{artist}\n{shotLength} frames (including {handles} fr. handles)\n{notes}", "Helvetica Neue", 67, xFontScale/GetDefaultAspect(), 1.79, 725, 1406.74, 0, 1, 3, 0.525, 0.47, 0.4, 1, 0, 0, 0, 45, 0, 1);
FitSlateSD = Fit(SlateTextSD, resSDx, height, "default", xFilter, 1);
CCropSlateSD = CCrop(FitSlateSD, 0, ((height - (width / (aspectD1 + .001))) / 2) + 1, width, ((height - (width / aspectD1)) / 2) + (width / aspectD1));
ResizeSlateSD = Resize(CCropSlateSD, width, height * 0.9, "default", 0);
// Image Massage
LogLin1 = LogLin(ColorWheel1, 0, 0, 0, 0, 95, rBlack, rBlack, 685, rWhite, rWhite, 1, rNGamma, rNGamma, 1.7, rDGamma, rDGamma, 0, rSoftClip, rSoftClip);
CCropHD = CCrop(LogLin1, 0, ((height - (width / aspectHD)) / 2), width, ((height - (width / aspectHD)) / 2) + (width / aspectHD));
FitHD = Fit(CCropHD, resHDx, resHDy, "default", xFilter, 1);
AddFrameHD = AddText(FitHD, "%F / " + stringf ("%04d", shotLength), "Lucida Sans Typewriter Regular", width*.01, xFontScale, 1, width - (width *.05), height *.021, 0, 3, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddShotHD = AddText(AddFrameHD, "{shot}.v" + stringf ("%02d", version), "Lucida Sans Typewriter Regular", width*.01, xFontScale, 1, (width *.05), height *.021, 0, 1, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddDateHD = AddText(AddShotHD, renderDate, "Lucida Sans Typewriter Regular", width*.01, xFontScale, 1, (width * .5), height *.021, 0, 2, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddNameHD = AddText(AddDateHD, artist, "Lucida Sans Typewriter Regular", width*.01, xFontScale, 1, width - (width *.05), height - (height *.016), 0, 3, 1, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
CCropSD = CCrop(LogLin1, 0, ((height - (width / aspectSD)) / 2), width, ((height - (width / aspectSD)) / 2) + (width / aspectSD));
FitSD = Fit(CCropSD, 720, 540, "default", xFilter, 1);
ResizeSD = Resize(FitSD, width, height*.9, "default", 0);
AddFrameSD = AddText(ResizeSD, "%F / " + stringf ("%04d", shotLength), "Lucida Sans Typewriter Regular", width*.025, xFontScale*.9, 1, width - (width *.05), height *.075, 0, 3, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddShotSD = AddText(AddFrameSD, "{shot}.v" + stringf ("%02d", version), "Lucida Sans Typewriter Regular", width*.025, xFontScale*.9, 1, (width *.05), height *.075, 0, 1, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddDateSD = AddText(AddShotSD, renderDate, "Lucida Sans Typewriter Regular", width*.025, xFontScale*.9, 1, (width * .5), height *.075, 0, 2, 3, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
AddNameSD = AddText(AddDateSD, artist, "Lucida Sans Typewriter Regular", width*.02, xFontScale*.9, 1, width - (width *.05), height - (height *.075), 0, 3, 1, 1, 1, 1, 1, 0, 0, 0, 45, 0, 1);
// Slate Gate
SelectHD = Select(time==slateFrame?1:2, FitSlateHD, AddNameHD, 0);
SelectSD = Select(time==slateFrame?1:2, ResizeSlateSD, AddNameSD, 0);
// File Out
foHD = FileOut(SelectHD, "/Volumes/fxc/atu/comp/" + shot + "/renders/" + shot + ".v" + stringf ("%02d", version) + ".hd.mov", "Auto", "Shake 3 QT 1", "Apple Photo - JPEG", 0, "100W@v5000WDcsuHvoe10vbOg53IX1WDCBBoeVY2LKf2bg7A7G2euX4eXXTK38hgW16KCYEWcWGfe2BN448WKI9PfSX88MKfC21mF1HKkaM4XMnNfbaerYZUY5fMGkYKre865Ije4oE486mZIDlK4biOTmZIQvdZS2ek8gl8dL288nigIMqLGz6jIpQPvKa6puYQ42W853UK1x0A0000N00000000002;", 0, 44100, 16);
foSD = FileOut(SelectSD, "/Volumes/fxc/atu/comp/" + shot + "/renders/" + shot + ".v" + stringf ("%02d", version) + ".sd.mov", "Auto", "Shake 3 QT 1", "Apple Photo - JPEG", 0, "100W@v5000WDcsuHvoe10vbOg53IX1WDCBBoeVY2LKf2bg7A7G2euX4eXXTK38hgW16KCYEWcWGfe2BN448WKI9PfSX88MKfC21mF1HKkaM4XMnNfbaerYZUY5fMGkYKre865Ije4oE486mZIDlK4biOTmZIQvdZS2ek8gl8dL288nigIMqLGz6jIpQPvKa6puYQ42W853UK1x0A0000N00000000002;", 0, 44100, 16);
}
// Usage
// shake -fxcpackagetest "154.shot.02" v1 length203 "Artist" "notes" -v -t 0-99