Why am I getting this ?

Moderators: Víctor Paredes, Belgarath, slowtiger
I've been playing with that for a while - since this: viewtopic.php?f=2&t=31433 in fact .. but I've not yet managed to get to a situation where I've succeeded in creating the styles to relink. AddStyle falls over in the way we've been discussing http://www.kelleytown.com/forum/animato ... IC_ID=3546; importing layers (with or without relink checked) leaves you past the point it might be useful...chucky wrote: Oh btw when I looked at Mohoscripting.com I noticed there a relink styles 'command' or function or whatever it is.![]()
Does that means it is possible to relink styles ( with the same name) using a script?
Is it a frequent / reproducible event? I've had some "weird" one-off unexplained issuances from moho that I've put down to things running for "too long" - and, ofc, there's no substantive evidence left after the event to warrant a bug report. I've had similar situations whilst developing my own scripts that I've traced back (and fixed!!) to one or both of: wrong scope of lua variables (e.g. either no or too many declarations of "local"); not properly re-initialising on a second run without a reload (e.g. I've declared local j = 0; used j so now it's (say) 6; and then, without exiting, run the guts of the script again and j starts at 6 not 0 ... ka-boom) IOW runs perfectly every first time - but falls over on second use without, e.g., swapping to a different tool in between! So IMO there might be something like that going on in your case.chucky wrote: Anybody know what this means? MohoDocLayerByDepth-out of range. Why am I getting this ?