Has anyone created a working clock, watchface in hype?


(Larry Torrez) #1

Stupid Question:
I was working on a concept for client using a clockface… is there any javascript and or basic code to get the clock acting like a clock?


(Hans-Gerd Claßen) #2

forumsearch? well just a hint :wink:


#3

I think you can get a prescription, if you are allergic to the search function :smiley:

There are a few attempts and examples of clocks here on the forums. :wink:

https://forums.tumult.com/search?q=clock

Just in case you can’t stretch up top :stuck_out_tongue:

If you share something you’ve done also that would help with answers specific to your situation.


(Freelancer) #4

:slight_smile: :slight_smile:

here you can find something made by @h_classen


(Larry Torrez) #5

Thanks for the quick response gentlemen… I did try the search first and got no results… but I credit that to operator error.


(Larry Torrez) #6

Will share the results with the forum when and if I can get it to do the mojo I am working on…


(Trey Yancy) #7

Assuming that anyone under the age of twenty knows how to read an analogue clock these days.


(Larry Torrez) #8

uni-watch B.hype.zip (471.3 KB)

Okay, here is the first attempt using the der watch code from hansgerd, thanks forum. I do have a question however…
There is a simple origin “bounce” applied to the body of the character, it is not working. I want it in the layer order set up in the Symbol set up, but it is not moving.
Is this because it is in a symbol? or what?

Thanks again for answering stupid questions.


(𝕄𝕚𝕔𝕙𝕒𝕖𝕝 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #9

I created a working clock in A Book About Hype. It actually displays the current time – IN THE BOOK ITSELF!

I used the Hype API to make the clock hands move like they’re ticking. They don’t bounce though. That’s not an option in the “set” “optionalTimingFunctionName” API.

hypeDocument.setElementProperty(element, propertyName, value, optionalDuration, optionalTimingFunctionName)

Maybe the Apple Watch will help make that skill more common :smile:


(Hans-Gerd Claßen) #10

uni-watch Bounce.hype.zip (472.0 KB)


(Mark Hunte) #11

This is so true, I had my nephew ask me what that was; pointing at my car’s analogue clock on the consol!. Then struggle to work out how to use it once we explained what it was and how it worked. He’s 14.:open_mouth:


(𝕄𝕚𝕔𝕙𝕒𝕖𝕝 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #12

Could be worse… https://en.m.wikipedia.org/wiki/Binary_clock :smile:


(Freelancer) #13

nice!

I have this model, vefy fun


(Larry Torrez) #14

Hans-Gerd Claßen,

Thanks for the fix, could you 'splain what change you made please. I would like to make sure this is a learning moment rather than a quick fix.

Eltee


(Mark Hunte) #15

Pretty cool. But I think I would have melted his brain mentioning sexagesimal time which may have been misconstrued.


(Hans-Gerd Claßen) #16

really cool! the binary clock


(Hans-Gerd Claßen) #17

onsymbolload start the maintimeline


(Larry Torrez) #18

Danke!


(Trey Yancy) #19

My daughter is 21 and still doesn’t get it.