Sie sind nicht angemeldet.

1

Sonntag, 29. Mai 2011, 21:43

Adjust code in vtour-normal.config to include equirectangular file name?

Hi,

Is there any way to adjust the code in the vtour-normal.config (shown below) so that I can change the name of exported jpgs to include the initiael quirectangular file name?

After I added the extra code submitted by Hans from another thread I tried a few samples and always get

mobile_b.jpg
pano_b.jpg
tablet_b.jpg

I would like to have the jpgs named like below as I use XML tour templates for everything so stick to numbers as they can be easily reused again.

001_mobile_b.jpg
001_pano_b.jpg
001_tablet_b.jpg


002_mobile_b.jpg
002_pano_b.jpg
002_tablet_b.jpg

etc........

Here's the code for the vtour-normal.config file

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
panotype=autodetect
hfov=360
converttocube=true
converttocubelimit=360x120
buildmobileimages=true
buildmobileres=512
buildtabletimages=true
buildtabletres=1024
tilepath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/pano[_c].jpg
preview=true
cspreview=true
graypreview=false
previewsmooth=25
previewpath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/preview.jpg
makethumb=true
thumbsize=80
makescenes=true
multires=false
maxcubesize=1024
xml=true
xmlpath=%INPUTPATH%/vtour/tour.xml
xmltemplate=xml/vtour.xml
xmltemplate_view=xml/vtour_viewtemplate.xml
xmltemplate_hotspot=xml/vtour_hotspottemplate.xml
xmltemplate_additional_file=xml/hotspots/hotspot_ani_black_64x64x20.png
xmltemplate_additional_file=xml/hotspots/hotspot_ani_white_64x64x20.png
embedlicenses=true
krpanoswf=../krpano.swf
html=true
htmlpath=%INPUTPATH%/vtour/tour.html
htmltemplate=html/swfkrpano_embedded_krpanojs.html
htmltemplate_js=html/swfkrpano_embedded_krpanojs.js
filter=LANCZOS
jpegquality=83
jpegsubsamp=422
jpegoptimize=true
quiet=false
waitkey=false



I could change each file name but I have 80 equirectangular files to process and sheer insanity would set in changing 1440 individual file names *blink*

Thanks,

Andrew

2

Sonntag, 29. Mai 2011, 23:53

Beginning with a number in the name will cause you trouble. Also, not real sure you want to name the images again when they are already deposited in a folder with the initial name. I have tried adding %BASENAME% and it does work but only for the "pano" images. The mobile and tablet images do not get the basename attribute.


tilepath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/%BASENAME%pano[_c].jpg

3

Montag, 30. Mai 2011, 00:26

Thanks for the reply Jarredja.

My regular workflow is to have 3 folders on the server and all the tour images go in them.

eg.

mobile
tablet
pano



If the jpgs were all titled mobile_b.jpg, pano_b.jpg, tablet_b.jpg I could only have one set in the main folder which is unfortunately how the droplet works.

I don't use any of the xml that is produced from the droplet and simply drag and drop the created jpgs into their respective folders. I'm trying to spend more time taking photographs and less time creating the tours so reusing templates works well for me until a large tour comes along and I have to rename all the jpg file names *pinch* Template xml code can be changed in Dreamweaver using find & replace.

My other option is to create the tiles in Pano2VR and do 3 sets at a time for each loaded equirectangular image but was hoping some wizardry could be created in the vtour-normal.config for more automation.

Andrew

4

Montag, 30. Mai 2011, 05:06

Take a look at this, Andrew.

http://www.texasvirtualtours.com/share/tooltest.zip

drop your licenses in and use the bat file in it. It should only give you images. If you want thumbs, that would be another issue but can probably be done in the bat file too.

Jarred

5

Montag, 30. Mai 2011, 16:11

After having my coffee this morning, I realized I could make that download lighter and have it so you just dump it into your existing tools folder. So here it is.

http://www.texasvirtualtours.com/share/tools.zip

EDIT: Always retest when you make changes to a file. I did not include the html and xml folders and therefore it did not work as expected for either download. I have updated the tools.zip AND the tooltest.zip so they should both work correctly NOW.

Should of had two cups of coffee, I guess.

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Jarredja« (30. Mai 2011, 16:41)


6

Montag, 30. Mai 2011, 17:36

Bloody hell, that's clever and works great *thumbsup*

I opened the 'test triple images vtour normal droplet.bat' and the 3 X 'vtour-normal.config' files in notepad to see what you did with the code.

Thanks very much for your time in setting this up. I'll keep a copy of your 'tooltest' zip file locally in case anyone else here needs it in the future.

Andrew



Jarred, you added the other post as I was writing my reply and I used the first version to test. I see what you mean with the newer zip file and I'll put it in my own tools folder.

Thanks again.

7

Dienstag, 31. Mai 2011, 08:02

*thumbsup* Glad to help when able. Sorry for the initial error.