Signature Pad v4.1.7 library

Dear all, I’m building a signature system using the Signature Pad v4.1.7 library. The system is using Hype, and since I don’t have a Mac, I’m working with the HTML5 output of my client’s animation. However, when I run the animation, the canvas field simply doesn’t accept my script. Question: how can I use the Signature Pad v4.1.7 library in Hype, considering I’m editing the file on a PC?

If you’d like, I can also help troubleshoot the canvas issue or suggest how to integrate the library with Hype’s HTML5 output. Just say the word!

Please check out Hype events. You can find a lot of events in the Hype cookbook.

Basically, you can use the HypeDocumentLoad or HypeSceneLoad, and then you could search for the canvas object and initialize when a scene loads and de-initialize when a scene unloads and so forth. Look at some of my extensions maybe they help you as well.

1 Like

You're welcome to post an export with the .html file you're working with (and a zip of the .hype file if you also have that), and that would probably help point you in the right direction.

But most likely the problem is one on timing, that the canvas hasn't been constructed at the point in which you want to attach to it. In this case, @MaxZieb's advice of waiting for one of the HypeDocumentLoad or HypeSceneLoad events via javascript is going to be the correct solution. (If you have issues with this/writing this, feel free to follow up)