Code Monkey home page Code Monkey logo

zahuczkys-aegisub-scripts's Introduction

The daily_stream branch contains regular updates and experimental features are already implemented. Might not be stable, or could not work as expected.
The main branch is the one you most likely want/need.

Versioning is unconsistent in that branch, don't think much about it.

There are two scripts in this repo right now, zah.perspective.moon, which is just the original Perspective.moon by Alendt with a few tweaks,
and Aegisub-Perspective-Motion, on which this readme focuses.

Extended docs(TBD) and tutorial(recommended): https://zahuczky.com/aegisub-perspective-motion/

Pull requests, comments, feature requests and issues are very welcome!

Basic usage of Aegisub-Perspective-Motion:

  • Right now it only works with Mocha.
  • First, you need to track your sign, and run Aegisub-Motion on it with After Effects Transform Data, as you usually would, but with scaling disabled. Make sure you have no fscx or fscy tags in your line.
  • Select all your tracked lines, and run Aegisub-Perspective-Motion, and paste After Effects POWER PIN data, that you axported from Mocha into it.
  • Bam, now you got perspective tracking.
  • Keep in mind, depending on the placement of your sign inside your track, you might have to do seperate tracks. One for specifying the exact position of your sign, and one for the plane from which the perspective gets calculated.

Credits: The part of this script that calculates the perspective itself, is from Alendts perspective.moon.

Caveats, bugs, problems:

  • The base scale is the first frame of the tracking.
    That means, that your first frame is used for the reference \fscx100\fscy100. Planned to be fixed in v0.3.
  • Every bug from perspective.moon is present here as well. If that didn't work for you in a case, this won't work as well.
  • You can't set your base fscx/fscy beforehand for the first frame. Planned to be fixed in v0.3.
  • Your perspective is calulated fully from the track, no information is taken from your lines to be used, like base perspective.

Changelog:

  • v0.1.0
    Scipt created.
  • v0.2.0
    Initial GitHub release.
    Handling scaling over to my script, instead of letting Aegisub-Motion handling it.
    Preparations for DependecyControl use.
  • v0.2.1
    Fixing DependencyControl stuff, adding optional usage.

TODO:

  • Making developer documentation.
  • Fixing depctrl stuff inside my files. (fixed[supposedly])
  • New scaling calculations(preferably that calculates the scaling for the position of the sign, not for the middle of our plane[howtomath]).
  • Fixing perspective.moon so it works on more extreme angles, and with different fscx and fscy scalings(like \fscx120\fscy180).
  • Full video tutorial.
  • Relative tracking to position in video.
  • Relative perspective transformation to tags already in the line.
  • Less crying, more coding.

zahuczkys-aegisub-scripts's People

Contributors

zahuczky avatar akatmks avatar arch1t3cht avatar petzku avatar garret1317 avatar seprodev avatar phoscity 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.