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

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
    710
    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 Link: https://support.troikatronix.com/support/tickets/new
        TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
        TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

        | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

        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
            • Isadora Add-ons: https://troikatronix.com/add-ons/
            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

            Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | 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