Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Sonntag, 16. April 2017, 22:52

Is there a way to customize placeholders in .config file?

I have a nice script that automates a lot of the processing needed to create tours, and one thing that would really be useful is if I could create a custom placeholder for use with krpanotools.exe.
For example, thinking along the lines of doing something similar in linux w/ Environmental variables:
I'd have a custom config file named custom.config, but I'd replace %INPUTPATH% with %MYCUSTOMVAR%, allowing the following line to tile panos into /mnt/tiles_storage:

Quellcode

1
# export MYCUSTOMVAR=/mnt/tiles_storage; /krpano/krpanotools makepano -config=/krpano/templates/custom.config /panos/*.tif



My goal is to allow the script to grab the tour name early-on, then use that string as part of the destination path. The only way I can see to do this now, is to manually set each of the 5 path variables separately on the command line (below example only has one such path shown):

Quellcode

1
/krpano/krpanotools makepano -config=/krpano/templates/vtour-multires.config -tilepath='/a/b/c/...' /panos/*.tif


I can use relative file paths based off of %INPUTPATH%, but that doesn't help me when I'm using another destination.
Unless I'm missing something simple?
Oh, and yes, I could simply add another line in the script to move the tiles over to another location, after makepano does it's thing, but part of the goal here is to keep the tiles off my working drive, since they are incredibly bulky, and take a long time to delete, etc. Each tile folder contains 429 files and 103 folders! It can take HOURS to delete an entire tour's tiles directory from my hard drive *sleeping*


Thanks for any pointers, and let me know if I need to be more clear on any of the above! *smile*