• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    [ANSWERED] Scaling & Set/Get Global Values

    How To... ?
    4
    6
    161
    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.
    • DanielPineiroD
      DanielPineiro
      last edited by Woland

      Hello!

       I'm trying to use "Get Value" (to create a user actor that fades the sound), and I'm encountering an issue where when I connect "Get Volume" to the volume of the player, it divides the value it receives by two. Why does it do this? If I use the broadcaster/listener pair, it works correctly. What is the reason for this behavior? Thanks in advance for your help.


       

      MacBook Pro Retina (2013) 2,4 GHz Intel Core i5, 8 GB 1600 MHz DDR3, Intel Iris 1536 MB.
      Big Sur 11.7.6
      Located in Pontevedra, Spain.

      jfgJ 1 Reply Last reply Reply Quote 0
      • jfgJ
        jfg @DanielPineiro
        last edited by

        @danielpineiro

        I think it is because you change the maximal value of the volume input in the Movie player to 100 after you had connected the get value actor. the standard volume input is 0 to 200 and by connecting the get value actor this one take the value of the volume input and you get something like this:

        If you change the "Scale max" back to 200 in the Movie Player actor or the Scale Max to 100 in the Get global actor you will get the correct value because the value won't be scaled any more from 0-200 to 0-100.

        You can also use a Absolute Value actor between both.

        Best regards, 

        Jean-François 

        • Izzy 3.2.6, Mac OS 14.1 Sonoma:
        - MacBook Pro M1 Max 16" 64GB RAM
        • Izzy 3.2.6, Mac OS 10.14.6 (Mojave):
        - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB )
        - MacBook Pro 2015 (16GB RAM) 2,8 GHz Intel Core i7;

        Located in Bremen, Germany

        DanielPineiroD 1 Reply Last reply Reply Quote 1
        • DanielPineiroD
          DanielPineiro @jfg
          last edited by

          @jfg said:

          Jean-François 

           Hi Jean-François,

          It works!  Both solutions are fine! (changing scale max to 100 in the Get global actor or putting an absolute value actor between)

          Thanks a lot!

          MacBook Pro Retina (2013) 2,4 GHz Intel Core i5, 8 GB 1600 MHz DDR3, Intel Iris 1536 MB.
          Big Sur 11.7.6
          Located in Pontevedra, Spain.

          DusXD 1 Reply Last reply Reply Quote 0
          • DusXD
            DusX Tech Staff @DanielPineiro
            last edited by

            @danielpineiro

            It is worth noting that the scaling changes when you connect the value 1 output of the Get Global Values actor to the volume in put of the Sound Player, because the value 1 output is mutable (it will be a green dot), this means it will convert to the data type and scale of the input you connect it to.

            The volume input of the Sound Player has a little bit of a unique default setup. It has a minimum value of 0 and a maximum value of 200, but has a Scale Min of 0 and a Scale Max of 100. So the input is being limited to a input range of 0-100, and when the value 1 output is connected to the volume input the range of 0-200 is adopted as the expected range for this output, so for example, a value 1 = 50 (expected range 0-200) will be scaled to fit the Scale range of 0-100 in this case, resulting in 1/2, so 25.

            Watch for these green dots, mutable IO is very helpful, but being aware of how it works, can help in cases like this.

            Troikatronix Technical Support

            • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
            • Isadora Add-ons: https://troikatronix.com/add-ons/
            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

            Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

            DanielPineiroD ArmandoA 2 Replies Last reply Reply Quote 1
            • DanielPineiroD
              DanielPineiro @DusX
              last edited by

              @dusx

              Thanks for the explanation! What confused me was that it does not work in the same way with Broadcast/Listener actors

              Regards!

              MacBook Pro Retina (2013) 2,4 GHz Intel Core i5, 8 GB 1600 MHz DDR3, Intel Iris 1536 MB.
              Big Sur 11.7.6
              Located in Pontevedra, Spain.

              1 Reply Last reply Reply Quote 0
              • ArmandoA
                Armando Beta Gold @DusX
                last edited by

                @dusx Thanks ! I never noticed the gree dots (I am ashamed....)


                Armando Menicacci

                www.studiosit.ca
                www.armandomenicacci.net

                Macbook pro 16 inches 2022 64 GB RAM, M1 MAX. OS 14 Sonoma

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