Forums > Jitter

How to update jit.gl.slab when i've changed the .jxs file with sublime text 3


Mar 06 2017 | 7:50 am

Hi everyone,

Quick question, working with jit.gl.slab , only changing the fragment shader all works so far.
So i edit and change my script in sublime text 3, save and the changes aren’t pushed through.
I thought that the jit.gl.slab reloads the .jxs file if any modifications are detected on disk, this is not the case.
If i double click the jit.gl.slab object and then just close it off it re compiles, which is very sloooooow. (i get its the javascript compiling)
Ideally click save in sublime , slab updates instantly.
Help anyone ?

Mar 06 2017 | 8:43 am

i find the built-in editor pretty instantaneous to update the view after saving changes, so that’s what i use if i want interactive editing of a jxs file (though only works if glsl is inline in the jxs).

otherwise, simply re-read the file after making changes. you can use a filewatch object if you prefer this to be automatic:

— Pasted Max Patch, click to expand. —
Mar 07 2017 | 6:06 pm

Filewatch ! missed that one ! I’ll check it out Rob. Thanks.

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

Forums > Jitter