I just adapted Bob's bash script into a Windows batch file, for usage
with Windows 2000 and up. Save the script at the end of this post to a
file named "smartblend-hugin.bat" and store it in the folder where
smartblend was installed.

Usage:
  1. Start Hugin.
  2. Open File -> preferences.
  3. Switch to Enblend tab.
  4. Check "Use alternative Enblend program".
  5. Choose "smartblend-hugin.bat" as the executable (use the full
path).
  6. Press OK to save the settings.
  7. On the Stitcher tab in Hugin, click the Options button next to
the Remapper and make sure "Save cropped images" is unchecked.
  8. Enjoy SmartBlend!


Script (everything below this line):

@echo off & setlocal

set SMARTBLEND=%~dp0\smartblend.exe
set SMARTBLENDARGS=

:paramstrip
set arg=%1
if not "%arg%"=="" (
        if "%arg%"=="--compression" (
                rem Skip compression parameter and its argument
                shift
        ) else if "%arg:~0,2%"=="-f" (
                rem Skip ...
        ) else if "%arg:~0,2%"=="-l" (
                rem Skip ...
        ) else if "%arg:~0,2%"=="-o" (
                rem Reformat output parameter: add "smartblend-" prefix
                set SMARTBLENDARGS=%SMARTBLENDARGS% -o smartblend-%2
                shift
        ) else (
                rem Copy other parameters
                set SMARTBLENDARGS=%SMARTBLENDARGS% %1
        )
        shift
        goto :paramstrip
)

echo.
echo Executing smartblend.exe %SMARTBLENDARGS%
echo.

%SMARTBLEND% %SMARTBLENDARGS%

endlocal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to