Sudden motion sensor

Cristohper Ramos Flores's icon

Hi,

I know a lot of you think (me too) that using the SMS is old since there are new devices that can be used to physically control parameters. However, I still like the visual aspect of directly move the computer and see it respond...

anyway, since el capitan, maybe also yosemite, both aka.bookmotion and SMS stopped working. In yosemite the console used to say something like "some.plist-wasexpected" (can't confirm which file it was since I updated the OS) and on el capital it says "Max[717:20355] Error loading" (for both objects).

Anyone have an idea how to fix this, or is there another way around to access SMS?

Thanks,
CRF

yaniki's icon

Cristohper

Create a HTML file reading SMS data via JavaScript DeviceOrientationEvent (http://www.html5rocks.com/en/tutorials/device/orientation/). Use window.max.outlet mechanism to send data from JavaScript inside the file into Max. Load this file into the [jweb] object.

I can prepare an example for you, if needed.

yaniki's icon

Oh, I found a ready-made example on my computer. Here it is. Btw. this is - in theory - a platform independent technique, and should work with any laptop (maybe also PCs...) equipped with motion sensor and compatible with standard JavaScript DeviceOrientationEvent.

DeviceOrientationInMax.zip
zip
Cristohper Ramos Flores's icon

oh awesome, that was an unexpected solution. Thank you so much, sorry I didn't reply soon, I've been super busy.

yaniki's icon

No problem ;-). I'm glad, it's useful.