Forums > Jitter

jit.gl.sketch Javascript Loading Issue

April 3, 2012 | 5:56 pm

I have a patch using two instances of jit.gl.sketch inside of javascript. When first opening the patch, and calling a method to draw something, neither of them display anything. However, if I go into the javascript editor, resave the code (without making changes), and then call the method again, it works as expected.

My JitterObjects in the javascript are declared in global code so they should be created at launch. Is this the problem?


April 4, 2012 | 6:02 am

More detail on the problem: It’s resulting from a screentoworld method performed on one of the contained sketch objects, which reports the correct values unpredictably. Occasionally, reloading/recompiling the js makes it work, but sometimes not.


April 4, 2012 | 3:35 pm

if you can narrow down the problem and post the code and example patch, we may be able to offer some suggestions.


Viewing 3 posts - 1 through 3 (of 3 total)