loadbang and autowatch

Wesley Smith's icon

Hi there,
I can't seem to figure this out. I want my JS script to init intelf
on autowatch reload. Right now, I have a lodabang method that works
just fine when the patch loads, but when I save the script and
autowatch reloads it, I want it to call loadbang again. Does anyone
know of a way to make this happen?

thanks,
wes

Joshua Kit Clayton's icon

Not currently.

-Joshua

Joshua Kit Clayton's icon

Actually, the following might work, since I don't think normal
properties are removed on recompile. Initial tests with the following
seem promising...

autowatch = 1;
var init;

if (init)
    loadbang(); // have loaded via autowatch, patch already exists

function loadbang()
{
    init = 1;
    // other stuff
}

Hope this helps.

-Joshua