@jonathan, One question: Why can't I create an automatic animation of a dashed line?
The only way I've found to do it is to draw a white dashed line and use it as a mask. I have duplicated it underneath with another line colour and I have activated the animation of this black line that is hidden intermittently under the white mask.
The trick works on a white background but as soon as it is superimposed on a coloured area, you can see the trick. Would there be another way to do it?
I have tested the two contributions you have made.
I added a hand with a pencil and the rest of the arm up to the elbow. The shading is done directly with Hype and it's perfect this way because you can adjust the shade as needed.
I had to correct the position of the "lineObserver" in its x and y coordinates to fit the pencil tip.It was a bit difficult to find where because I don't have much idea of programming, but I do know that you have to add or subtract pixels, or points, to the default coordinates to make that correction.
The concrete correction was (In lines 16 and 17 of the code):
hypeDocument.setElementProperty(handElm, 'top', offsetTop + pt.y -65);
hypeDocument.setElementProperty(handElm, 'left', offsetLeft + pt.x +55);
you can use invisible lines to reposition the hand if the offset between two lines creates a big jump OR even easier you can just animate the hand as you want. As long as there is no marked line progressing the hand is free to be animated with Hype.
the object positioned by the lineObserver can be anything … so you could just have it position a group (1) and inside the group the hand image (2) can be moved around until the pencil point is aligned with the group corner. That way you don't have to adjust x and y for the pen.
You can make the hand and pen a symbol and then use symbol actions from the main timeline to run any symbol timeline using symbol actions. That way the hand can have a set of reusable "gestures" or "actions" that can be added to any motion without having to repeat the animation work.
That looks great.
This way you can give the arm some naturalness, at least support and lift the pencil tip from the paper. That's enough to make a more dynamic global animation
The technical reason is that the line draw and line dash use the same property under the hood. My recollection is that the solutions that were developed in the forums would likely be the way forward to allowing both in Hype for a future release .
I'm glad to see everyone contributing on here - looks like with all these techniques combined a hand drawn pencil animation look has come together!
With all that I have learned here I have made an animation with Hype for the header of some videos that I am working on.
Logo_Animado-720
I have also taken the opportunity to test the buttons. I have put one of "Repaly" but it gives a failure: the pencil line effect is lost with the "Replay", although it works if you reload the page.
I have been doing tests and only "reload" the pencil style if the button action is "Go to Url (same web address)" reloading the page, instead of "Jump to the Scene1". But I don't know if that's right.
Any chance you would be willing to share a zip of this .hype document? I think that would be the easiest route to investigate why the filter effect for the pencil isn't showing up.
Looking great! Basically, the enabler creates SVGs with effect definitions and a unique id for each of the pencils. Currently, I am not checking if the enabler already did that job and it reruns. I guess that would be the source of the problem. You can fix it if you add the enabler to a first scene you never revisit. But the pencils (and the enabler) do need some love and some refactoring. I am currently investigating patterns and in that go… maybe I'll see to it that pencils are also "cleaned" up and extracted into a CDN file rather than being rendered as an "enabler" (in a rectangle) on stage…