TechnoRobbo Posted February 17, 2014 Share Posted February 17, 2014 (edited) This should do exactly what you want <Plugin in newer post> Edit the config file withe notepad if the directory path for Krpano is incorrect. If you upgrade Krpano update this file. The Output Image will appear in your Documents Folder named 360_sphere.tif Edited August 11, 2015 by TechnoRobbo Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 17, 2014 Author Share Posted February 17, 2014 Dear TechnoRobbo! Thank you for this plugin, looks good - many thanks! I have some questions: Can the cfg file be in the plugin folder of paint.net? This would be easier for our user environment. Can the script save the converted image in the same folder and filename plus "_360sphere" then the source? Then open the converted file and delete the source file maybe also with cfg: destination_dir = source open target = yes delete source = yes Because the user has many files to convert,... In the future the krpano will support png, maybe it's good to think about that now for the future with also an cfg option at the moment like: output = tiff So I can change the cfg then later to output = png? Once again MANY THANKS! Best regards Annotator Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 18, 2014 Share Posted February 18, 2014 Since it's a plugin I can't erase the original I can move the config file - no problem I can't query the original file name but I can add a textbox so the user can assign it a name .This would require extra error trapping in the code so I need time to debug. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 18, 2014 Share Posted February 18, 2014 Rather than the Paint.NET directory itself, shouldn't the cfg file be placed in My Documents\Paint.NET User Files? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 18, 2014 Share Posted February 18, 2014 (edited) Ego, you are correct, but I think different users may be logging into the same machine, so different document folders are used, so in his case that may be a common location. Edited February 18, 2014 by TechnoRobbo Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 18, 2014 Author Share Posted February 18, 2014 (edited) Hi again! Thanks for your statements. @TR: In the message box is written Kpano, you forgot the "r" in krpano Because of different users I think it would be good that the config file is also in the plugin folder. Can the plugin makes after creation the new (temporary) file: 1. Layers - import from file - and import the temporary file 2. delete the background layer (the original file) 3. crop to selection 4. save with default settings 5. delete the temporary file I made these 5 steps now manually and then I have the choice to: save the file also as jpg because at the moment KRPANO doesn't support png. Later, when it supports png I can just close the file (we don't need the fisheye image anymore) This would be nice for our workflow. What do you think? BR Annotator Edited February 18, 2014 by Annotator Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 18, 2014 Share Posted February 18, 2014 (edited) Can the plugin makes after creation the new (temporary) file: 1. Layers - import from file - and import the temporary file 2. delete the background layer (the original file) 3. crop to selection 4. save with default settings 5. delete the temporary file Most of those steps can't be accomplished by a plugin. Macros and Droplets are in Rick Brewster's wheel house if he so chooses to add them. The Original layer cannot be replaced because the output will always be twice as wide as the input. Edited February 18, 2014 by TechnoRobbo Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 18, 2014 Share Posted February 18, 2014 (edited) This is the revision - Version1.1 <removed for newer version> it contains the plugin and the config file , extract both to effects folder. the config file now looks like this try changing the output folder to something like this C:\Output if the plugin doesn't find that folder, it defaults to the Documents folder for the user This is the VS Source Code for the Curious programmers <newer version available> Edited February 20, 2014 by TechnoRobbo 1 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) Dear TechnoRobbo! Thanks for the version 1.1 The posibillity to enter a filename is great, so I don't need to rename the file later. But I found a litte problem when entering a Base Name like "1 - Management" or "2 - Reception" or special German charakters like Ü or Ö or Ä - can you fix this? Also the extension with "_sphere" always at the final filename is too much when a base name is defined, so I would remove this out of the plugin. So the user has to enter the File Name (without file extension) If this is a problem: If somebody leaves the file name empty, can you use the actual date and time for the filename - so another conversation will not overwrite a previous file. Like : [2014-02-19 09_55_05] 360_sphere.tif Best regards Annotator Edited February 19, 2014 by Annotator Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 19, 2014 Share Posted February 19, 2014 that maybe tougher than you think since the droplets require an 8.3 naming convention - I'll have to experiment to see if I can mix an 8.3 path with a long file name. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 19, 2014 Author Share Posted February 19, 2014 Maybe you don't use the droplets and start the exe directly with the parameters of the temp images? You know the kcube2sphere.exe location from the cfg file droplet: "%~dp0\kcube2sphere" -config=convertdroplets.config "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" your plugin path from cfg\kcube2sphere.exe -config=convertdroplets.config "temp image1" "temp image2" "temp image3" "temp image4" "temp image5" "temp images6" Just a idea,...... Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 19, 2014 Share Posted February 19, 2014 (edited) try v 1.2<newer version available> Edited February 20, 2014 by TechnoRobbo Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 19, 2014 Author Share Posted February 19, 2014 Hi again - wow you are fast.... that's great, One little thing:It cannot overwrite an existing file (if file exist), but that's not really important. One last wish: Is it possible to define the used droplets also in the configuration? because I will modify the droplet and erase the delay, so I will have an individual droplet for the plugin. Like [Convert CUBE to SPHERE droplet] ThreeSixty CUBE to SPHERE droplet.bat and [Convert SPHERE to CUBE droplet] ThreeSixty SPHERE to CUBE droplet.bat Then I can optimize and don't need to change the original droplets from krpano. Thanks...... Annotator Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 20, 2014 Share Posted February 20, 2014 (edited) One little thing:It cannot overwrite an existing file (if file exist), but that's not really important. One last wish: Is it possible to define the used droplets also in the configuration? because I will modify the droplet and erase the delay, so I will have an individual droplet for the plugin. Version 1.3 ThreeSixtySrc.zip It will overwrite files with same name Config file allows you to define Droplet to use. [Krpano] C:\krpano-1.17.pr2 [Output] C:\360 [CUBE2SPHERE] Convert CUBE to SPHERE droplet.bat [SPHERE2CUBE] Convert SPHERE to CUBE droplet.bat Source Code for Programmers : ThreeSixtySrc.zip ThreeSixty.zip Edited February 20, 2014 by TechnoRobbo 1 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 20, 2014 Share Posted February 20, 2014 (edited) I misspelled sphere in config - I read the correct label in the code. I'll make a revision in the config file , plugin remains the same. You can Either re-download or change it yourself. It would work with the bad config because it will ignore the bad label and use the default. But if you don't change the Config file label for [sHERE2CUBE] to [sPHERE2CUBE] it will ignore the custom droplet and use the original. oops. Edited February 20, 2014 by TechnoRobbo 1 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Annotator Posted February 25, 2014 Author Share Posted February 25, 2014 Thank's TechnoRobbo! You helped us very much, now it's a simple click and we can convert this image. Perfect !!! Will it work also with the new version of Paint.net? Or do we need then a new one? Best regards Annotator Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted February 26, 2014 Share Posted February 26, 2014 I wrote it to be compatible with both Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.