Code Monkey home page Code Monkey logo

stlsaver's Introduction

Herosaver

Save Configuration and STL of https://www.heroforge.com/

Usage

You can use HeroSaver in one of two fashions. Either you let it load as soon as you visit HeroForge (You need a browser extension for that), or you load it manually through your browsers console (No extension needed).

Automatically

You can automatically load HeroSaver when you visit HeroForge by adding a GreaseMonkey/TamperMonkey script. For that you need to install GreaseMonkey or TamperMonkey (Click here or here for Firefox, or here for Chrome, and install the addon).

after a script manager is installed click following link to add the script:

https://github.com/dserhienko/StlSaver/raw/master/greasemonkey_autoload.user.js

you are done.

Note: There is a version of TamperMonkey for Opera Next, Safari and Edge, but I never tried them. It is very much possible, that the same workflow works for those browsers.

Manually

Alternatively you can load the HeroSaver manually everytime you visit HeroForge.

  1. Go to https://www.heroforge.com/
  2. Open the Javascript Console [F12], then click on Console
  3. Paste the following
var xhr=new XMLHttpRequest;xhr.open("get","https://raw.githubusercontent.com/GuillermoIglesias/stlsaver/master/herosaver_test.js",true);xhr.onreadystatechange=function(){if(xhr.readyState==4){var script=document.createElement("script");script.type="text/javascript";script.text=xhr.responseText;document.body.appendChild(script)}};xhr.send(null);

Buttons

Once HeroSaver is loaded, you have these additional buttons on the top bar:

  • Export Model (STL) - Exports the current model and downloads a STL of it.
  • Export (JSON) - Exports the current model settings in a JSON format.
  • Import (JSON) - Imports a previously exported JSON file with model settings.

Limitations

Some details of the figures are implemented via shaders. These are not exported :( This is also the reason, the exported figures look a bit blocky. If you want hight quality exports, consider purchasing the stl files from heroforge :)

stlsaver's People

Contributors

allanmaral avatar augustbebel avatar carlalldis avatar christofsteel avatar dserhienko avatar fingin avatar guillermoiglesias avatar lukered avatar mihanner avatar sonic-cloud avatar teawithlucas avatar weathondev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

espray rovacado r0ms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.