Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

1

Dienstag, 14. März 2023, 12:40

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

Dienstag, 14. März 2023, 14:55

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

3

Dienstag, 14. März 2023, 14:59

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

Dienstag, 14. März 2023, 15:27

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.

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
@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

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

5

Dienstag, 14. März 2023, 15:34

Hi,

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

Tuur *thumbsup*

6

Dienstag, 14. März 2023, 15:36

Just realized that I created it for 1.19

For 1.21 use:

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
@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

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

7

Dienstag, 14. März 2023, 15:46

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

Dienstag, 14. März 2023, 15:53

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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

9

Dienstag, 14. März 2023, 15:54

but..

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

Tuur *thumbsup*

10

Dienstag, 14. März 2023, 15:56

.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

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

11

Dienstag, 14. März 2023, 15:58

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*

Ähnliche Themen