• 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

    [ANSWERED] help me. javascript!?!

    How To... ?
    3
    5
    809
    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.
    • C
      Cacoos last edited by DusX

      how to fix what HEX - shows not lowercase letters but capital ones?screen-shot-2021-12-23-at-17.29.58.png

      C Michel 2 Replies Last reply Reply Quote 0
      • C
        Cacoos @Cacoos last edited by

        hex - "445c"  - and you need what would be like that hex - "445C"

        1 Reply Last reply Reply Quote 0
        • Michel
          Michel Izzy Guru @Cacoos last edited by

          @cacoos

          You need to paste this code:

          function main()
          {
              return [arguments[0].toString(2), arguments[1].toString(16).toUpperCase(16)];
          }

          Best Michel

          Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

          C 1 Reply Last reply Reply Quote 1
          • C
            Cacoos @Michel last edited by

            @michel said:

            return [arguments[0].toString(2), arguments[1].toString(16).toUpperCase(16)];

             thank you very much!!!

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

              As described in Ryan Webber's article (see link at the end of my reply), you can use the print() function in combination with the Monitor window for debugging Javascript code.  

              This code worked :

              function main()
              {
                  var outhex;
                  outhex = (arguments[0].toString(16)).toUpperCase();
                  print (outhex);
                  print ('\n');
                  return [arguments[0].toString(2), outhex ] ;
              }
              Important: At first, the Javascript actor outputted only the digits of the Hex code, no letters A-F. It seemed to me that it converted the string back to integer due to automatic data conversion. After connecting the output of the Javascript actor to a Trigger Text actor it worked.

              Cheers, Gunther

              https://support.troikatronix.c...

              Izzy 3 USB | Win10 64bit | various hardware: I5, I7

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