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.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,830

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Tuesday, March 14th 2023, 12:40pm

Tools request

Hi,

I would like to see an option in the tools, when making a custom droplet, to NOT create a 'tour.js'.
Also it would be great to have the option to be able to give the tour.xml and tour.js a custom name with a text input when you use the droplet.

Tuur *thumbsup*

2

Tuesday, March 14th 2023, 2:55pm

Do you need the html output? If you disable it, it also does not create the tour.js

3

Tuesday, March 14th 2023, 2:59pm

Some more ideas:

- Just add a line in the droplet.bat to delete the tour.js in the end
- Also you should be able to get an input in the .bat and rename the files like you want to

4

Tuesday, March 14th 2023, 3:27pm

This droplet asks you for a name for the tour.xml, renames that after the files are created to the desired filename and deletes the tour.js for you.

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
@echo off
echo MAKE VTOUR (NORMAL) droplet

IF "%~1" == "" GOTO ERROR
IF NOT EXIST "%~1" GOTO ERROR

set /p name=File name for tour.xml (type without .xml): 

set KRPANOTOOLSEXE=krpanotools64.exe
if "%PROCESSOR_ARCHITECTURE%" == "x86" set KRPANOTOOLSEXE=krpanotools32.exe

"%~dp0\%KRPANOTOOLSEXE%" makepano "%~dp0\templates\vtour-normal.config" %*

del vtour\tour.js
echo tour.js deleted
ren vtour\tour.xml %name%.xml
echo tour.xml renamed in %name%.xml
GOTO DONE

:ERROR
echo.
echo Drag and drop several panoramic images on this droplet to create 
echo automatically a simple virtual tour with normal panos from it.

:DONE
echo.
pause

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,830

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Tuesday, March 14th 2023, 3:34pm

Hi,

Ah thanks.. good one(s).
I have a try.
Never thought about such.

Tuur *thumbsup*

6

Tuesday, March 14th 2023, 3:36pm

Just realized that I created it for 1.19

For 1.21 use:

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
@echo off
echo MAKE VTOUR (NORMAL) droplet

IF "%~1" == "" GOTO ERROR
IF NOT EXIST "%~1" GOTO ERROR

set /p name=File name for tour.xml (type without .xml): 

"%~dp0\krpanotools.exe" makepano "%~dp0\templates\vtour-normal.config" %*

del vtour\tour.js
echo tour.js deleted
ren vtour\tour.xml %name%.xml
echo tour.xml renamed in %name%.xml
GOTO DONE

:ERROR
echo.
echo Drag and drop several panoramic images on this droplet to create 
echo automatically a simple virtual tour with normal panos from it.

:DONE
echo.
pause

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,830

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

7

Tuesday, March 14th 2023, 3:46pm

hmmm.. can't get it to work.
Are you on Mac? I am.. I think to remember that Macs have different syntax then PC here..
In which file do you put this?

Tuur *thumbsup*

8

Tuesday, March 14th 2023, 3:53pm

Ah, yes. That probably only works for Windows. Can't help you with Apple stuff. Sorry.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,830

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

9

Tuesday, March 14th 2023, 3:54pm

but..

where do you put this?
Is this terminal?
or a .config file

Tuur *thumbsup*

10

Tuesday, March 14th 2023, 3:56pm

.bat droplet file. Basically it's just a modification of the 1.19 "MAKE VTOUR (NORMAL) droplet.bat" to do what you wanted and to run on 1.21 ;-)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,830

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

11

Tuesday, March 14th 2023, 3:58pm

ah yes.. that makes sense.. I also used to use the old droplets .. some years ago..
not sure if I want to go there again..

Thanks anyway!
I hope for a 1.21 .config solution.
Also like to be able to save the 'scenes' code to another xml..

Tuur *thumbsup*

Similar threads