I am needing to make my panos into cubes. To do that I discovered panotools 
and erect2cubic. I did one pano from the command line and it worked great. 
The end user though is going to be a friend on a MAC who has almost no 
computer knowledge and would not be comfortable with the command line. I 
had been hearing about batch files and learned enough to  write up a .bat 
that allows a person to drag and drop an equirectangular image and it makes 
the cubes, which works great on my windows machine. I have attached it as a 
text document. Feel free to comment on it as I am still very new to all of 
this or if you are needed a drag and drop answer you can give it a try. 
Rename the .txt to .bat and put it in the bin folder under hugin and it 
works.

Tonight, I spent way to long talking on the phone with my friend trying to 
get the .bat file to work on her mac and kept having problems. Does anyone 
else have experience with the mac equal to .bat files and panotools and 
have any tips on how to get them set up? (She has perl installed, and we 
figured out that we needed to rename the .bat to .command. Then we got 
stuck on file permissions which I did not know a mac even had.)

Failing that is there another simple way to ask Hugin to make a cube 
instead of an equirectangular image or to convert one as erect2cubic does?

Thanks,

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/cbda74d3-ed34-45d0-8074-743937d9940f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@ECHO off


echo "Opening: %1"
REM echo "Opening: %~p1"
REM echo "TEMPPATH: %TEMP%"



REM Switch between test and real
REM PERL "C:\Program Files\Hugin\bin\erect2cubic" --erect=%1 
--ptofile=%TEMP%cube_project.pto
PERL "%~dp0erect2cubic" --erect=%1 --ptofile=%TEMP%cube_project.pto

REM Echo Launch dir: "%~dp0"
set FILENAME="%~n1"

CD %~p1
mkdir %FILENAME%
echo "Made directoy: %FILENAME%"
echo "Starting to make cube Faces"

REM Switch between test and real
"%~dp0nona" -o %FILENAME%/cube_prefix %TEMP%cube_project.pto
REM "C:\Program Files\Hugin\bin\nona" -o %FILENAME%/cube_prefix cube_project.pto



REM Change directory to the one we just built.
CD %~p1/%FILENAME%

echo "Renaming cube faces"
RENAME cube_prefix0000.tif %FILENAME%_f.tif
RENAME cube_prefix0001.tif %FILENAME%_r.tif
RENAME cube_prefix0002.tif %FILENAME%_b.tif
RENAME cube_prefix0003.tif %FILENAME%_l.tif
RENAME cube_prefix0004.tif %FILENAME%_u.tif
RENAME cube_prefix0005.tif %FILENAME%_d.tif

echo 
echo "Cube %FILENAME% is now done!"

PAUSE

Reply via email to