Code Monkey home page Code Monkey logo

squeezysceney's Introduction

#Quick and dirty FoundryVTT Scene resizer

No warranty, no nothing.. if this breaks your scenes or legs I'm not liable got it?

Installation

~/P/SqueezySceney ❯❯❯ pipenv sync
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing dependencies from Pipfile.lock (34f698)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
All dependencies are now up-to-date!

Usage

python main.py <input filename> <output filename> <decimal scale value>

The decimal scale value is based on 1 as the current size, aka 100%. For example if you wanted to resize your scene down by 72% you'd do the following:

~/P/SqueezySceney ❯❯❯ pipenv shell
Launching subshell in virtual environment...
(SqueezySceney) ~/P/SqueezySceney ❯❯❯ python main.py ~/Downloads/Brazenthrone.fvttadv ./backup.fvttadv 0.72
input_filename: /home/josh/Downloads/Brazenthrone.fvttadv. output_filename: /home/josh/PycharmProjects/SqueezySceney/backup.fvttadv. scale: 0.7199999999999999733546474089962430298328399658203125
Processing scene/L1smabYvMPHPVcTE.json
Processing scene/thr1FnwdAVIm8KBp.json
Processing scene/21QR5V87fEqpKuny.json
Processing scene/bbwr1a0pnUk129od.json
Processing scene/Q5GU8CEF027KCbhb.json
Processing scene/3zXtjTrtRu8mumf7.json
Processing scene/UZAvLOVcigySJkml.json
__pycache__  backup.fvttadv  main.py  Pipfile  Pipfile.lock  readme.md  scaler.py
(SqueezySceney) ~/P/SqueezySceney ❯❯❯ 

You would then end up with a backup.fvttadv in the current directory that you can re-import via Foundry Adventure import/exporter

squeezysceney's People

Contributors

mr-bo-jangles avatar

Watchers

 avatar  avatar

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.