Hi there!
I am creating an application that uses shape keys and set morph factor to manipulate a simple 3d model. I am sending data to the verge 3d iframe via postMessage.
The input fields in the parent document have an “input” eventlistener, so any time the input is changed, the data is sent to the iframe. The data is sent via JSON (stringify) and then parsed once it is received in the iframe.
My puzzle listens for a message event, and then sets VARS[”] for each of the 3 shape keys, then calls a protocol which sets the morph factors to the created variables.
The problem is, whenever I change the input, my object disappears and I can’t figure out why.
At one point I had it working, so I know it is possible but I can’t figure out why it no longer functions!
Any help would be greatly appreciated! Thank you.
I attached the code that sends the data to the iframe, as well as the code in my puzzle.
Attachments:
You must be
logged in to view attached files.