• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

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

    How to quantize a value?

    How To... ?
    3
    4
    1011
    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.
    • U
      ughoenig last edited by

      Hi all,

      is there an actor or a combination of actors to quantize a value? I want to input 1..2..3......100, quantize that to 10 and get 0..10..20..30.....100. How can this be done?

      Thanks,

      Uwe

      1 Reply Last reply Reply Quote 0
      • mark
        mark last edited by

        @ughoenig said:

        Hi all,is there an actor or a combination of actors to quantize a value? I want to input 1..2..3......100, quantize that to 10 and get 0..10..20..30.....100. How can this be done? 


        Best Wishes,
        Mark

        Media Artist & Creator of Isadora
        Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

        1 Reply Last reply Reply Quote 1
        • H
          hairi Beta Silver last edited by

          Alternatively use a Javascript Actor and paste the following code in the editor.

          function main()

          {

          return Math.floor(arguments[0] / 10.0) * 10;

          }

          1 Reply Last reply Reply Quote 1
          • U
            ughoenig last edited by

            Ah! Thank you very much, mark and hairi! I knew there had to be some way... :-)

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