You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, August 2nd 2021, 8:39am

Can't change the output directory of the tour.js file.

Hey guys!

I was looking into how would I could change the output path of the tour.js file. The closest thing that I managed to find was changing the htmltemplate_js in the .config file - however, that does not seem to have any effect. What did have an effect was changing the xmlpath variable in the config file - that moved the tour.xml and tour.js into the same folder, however, I would like to define a specific path for just the js file, preferably editing a variable such as jspath. How can I change the output path of the javascript file?

Adding my config file below.

Source code

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Virtual Tour with Multi-Resolution Panos
# Skin with Scrolling-Thumbnails, Bingmaps, Gyroscope, VR-Support
# Documentation: https://krpano.com/docu/tools/config/
# krpano 1.20

# image filtering and compression settings
filter=LANCZOS
jpegquality=82
jpegsubsamp=422
jpegoptimize=true


# color profile handling: skip, copy, convert or sRGB
profile=sRGB


# load gps exif information from the input files and transfer them to the xml
parsegps=true


# parse the input files for orientation / leveling information and either 
# directly remap the images or add a prealign setting in the xml to level them
autolevel=remap


# sort the input files alphabetically
sortinput=true


# protection settings (nomb = no Flashplayer menubar for standalone swf)
kprotectclparameters=-nomb
panotype=autodetect 
hfov=360 
makescenes=true


# output 
flash=false
html5=true


# convert spherical/cylindrical to cubical 
converttocube=true 
converttocubelimit=360x120 
converttocubemaxwidth=60000


# multiresolution settings 
multires=true 
tilesize=512 
levels=auto 
levelstep=2 
maxsize=auto 
maxcubesize=auto 
stereosupport=true 
adjustlevelsizes=true 
adjustlevelsizesformipmapping=true


# output images path 
tilepath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/[c/]l%Al/%Av/l%Al[_c]_%Av_%Ah.jpg


# preview pano settings 
preview=false 
graypreview=false 
previewsmooth=25 
previewpath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/preview.jpg


# generate thumbnails 
makethumb=false 
thumbsize=240 
thumbpath=%INPUTPATH%/vtour/panos/%BASENAME%.tiles/thumb.jpg


# xml output 
xml=true 
xmlpath=%INPUTPATH%/vtour/tour.xml


# html output/template 
html=true 
htmlpath=%INPUTPATH%/vtour/index.html
htmltemplate_js=%INPUTPATH%/vtour/js/tour.js

# skin / xml template
include vtourskin120.skin


# include testing servers 
htmltemplate_additional_file=html/tour_testingserver.exe 
htmltemplate_additional_file=html/tour_testingserver_macos+x