• 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] Is it possible to draw a p5.js script within the Javascript actor?

    How To... ?
    javascript
    3
    5
    1576
    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.
    • S
      santmart last edited by mark

      Hello!


      I am starting to learn p5.js for some basic generative design fun and I got really excited when I remembered that Isadora has a Javascript actor. However, from what I can see in the scripting tutorial I can only print a string from the Javascript code into other actors.


      Is that true? Could I also use an output to draw into other actors? That would be awesome!

      Bests,

      Santi  

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

        @DusX is the JavaScript guru

        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 |

        1 Reply Last reply Reply Quote 0
        • S
          santmart last edited by

          Thanks Woland! Hello @DusX! Any advise on this?

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

            the Javascript engine in Isadora doesn't include any of the Web specific components. None of the DOM or canvas for example. So no you can not draw in the way you are thinking.

            You could however control xy motion in Javascript and feed those values to a Live draw actor for instance..

            Troikatronix Technical Support

            • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
            • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

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

            1 Reply Last reply Reply Quote 1
            • S
              santmart last edited by

              Thanks for your reply guys. I will experiment a bit with it!

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