• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Crop-calculator javascript

    Showcase
    javascript zoomosc
    3
    7
    1084
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • peuclid
      peuclid last edited by

      Here's a chunk of javascript I'm using to calculate the values for Isadora croppers based on a zoom meeting.

      I call it for each number of participants from 1 to the max, feeding them into globals for each number of them.

      Here's the gist

      I found a few algorithms around the web that worked pretty well, so I combined them and made a simple javascript version. I originally had written an OSC handler to do this, but then realized by making a straight javascript version, it could all happen directly in izzy.

      Used this in cooperation with lots of routers and selectors and ZoomOSC to make a User Actor that is a simple list of the full cast, so I can do layouts by just taking the output of the cast and placing them around the screen.

      After the show this weekend, I'll try to write up and share the whole set up. 

      Bernie Bernstein
      MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
      Based in Newton, MA USA

      peuclid liminal_andy Woland 4 Replies Last reply Reply Quote 3
      • peuclid
        peuclid @peuclid last edited by

        @peuclid

        I realized, the javascript alone might not be as helpful without the izzy file showing how to set it up to get all the global vals set accordingly.

        Zoom Crop-n-Pan.izz

        Bernie Bernstein
        MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
        Based in Newton, MA USA

        peuclid 1 Reply Last reply Reply Quote 1
        • peuclid
          peuclid @peuclid last edited by

          @peuclid

          I wanted to give credit appropriately. This was in a comment in the code but wanted to mention this article that gave me the core algorithm:

          https://dev.to/antondosov/buil...

          Bernie Bernstein
          MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
          Based in Newton, MA USA

          1 Reply Last reply Reply Quote 1
          • peuclid
            peuclid @peuclid last edited by

            @peuclid

            Also a big thanks to @frank522 whose showcase and some slack messages was essential in putting together the rest of this. Having never used Isadora before, it was a great example to draw from.

            THANKS Frank!

            Bernie Bernstein
            MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
            Based in Newton, MA USA

            1 Reply Last reply Reply Quote 1
            • liminal_andy
              liminal_andy @peuclid last edited by

              @peuclid Really glad to see this turned out so well! Great work.

              Andy Carluccio
              Zoom Video Communications, Inc.
              www.liminalet.com

              [R9 3900X, RTX 2080, 64GB DDR4 3600, Win 10, Izzy 3.0.8]
              [...also a bunch of hackintoshes...]

              1 Reply Last reply Reply Quote 1
              • Woland
                Woland Tech Staff @peuclid last edited by

                @peuclid

                Great work!

                Please consider putting this on our Plugin Page (it's also for patches and any downloadables really). It makes it much easier to find in future because threads like these eventually get pushed deeper and deeper into the forum as new posts get made, but the plugin page is purpose-built for users to upload downloadable content for others.

                Best wishes,

                L Wilson-Spiro

                TroikaTronix Technical Support
                New Support Ticket: https://support.troikatronix.com/support/tickets/new
                Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                peuclid 1 Reply Last reply Reply Quote 0
                • peuclid
                  peuclid @Woland last edited by

                  @woland

                  Thanks. I'll add to the plug-ins, probably this weekend. I'll want to make a little how-to video since it might not be obvious how to use it.

                  Also, since I built upon the work shared by @frank522 in his showcase, I'll want to share how simple it is to make scenes from zoom participants. I'm excited about it.

                  Bernie Bernstein
                  MacBook Pro (13-inch M1 2020) 16GB, MacOS Monterey- Izzy 3.1.1 (ARM)
                  Based in Newton, MA USA

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post