Page 1 of 1

LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Sun Oct 14, 2018 2:18 pm
by NealF
I've tried several ways to add a character to the library, but I keep getting this pop up console.
And the items that get put into the library are incomplete.

I saw another question about this on this board but couldn't understand the answer (or if there was one.) I tried doing this with all the layers selected and also with just the Bones level selected. With the Bones only selected I got better results. It added all the layers but not the bones. When I selected all the layers, I only got one layer added.

I'd upload a screenshot of my layers but can't find a way to do it.

Thanks.

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Sun Oct 14, 2018 6:39 pm
by synthsin75
I see the error here, but it doesn't seem to cause any problem...well, except Moho crashed the second time I tried.
Adding the main/bone layer adds the whole character to the library.
Do you have a problem file we could test?

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Oct 15, 2018 12:11 am
by NealF
Sure. Trying to find out how to upload. Am I not seeing something?

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Oct 15, 2018 12:55 am
by synthsin75
Upload the file to a file host, like FileDropper, MediaFire, etc., and post the link they give you here. For images, either use the "Upload To TinyPic" tab below the reply field, or upload them directly to TinyPic, Imgur, etc. and post the link between [img][/img ] tags.

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Oct 15, 2018 7:19 am
by hayasidist
Are you on 12.5?? If you are then the next bit is irrelevant and sorry for the interjection.
But if you're not, it may be worth a try as there might have been some relevant bug fixes. you can get it here https://my.smithmicro.com/moho-pro-updates.html or in Moho via help > check for updates

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Oct 15, 2018 1:57 pm
by NealF
Thanks. I'm on 12.4.

I'll try the update and if it doesn't fix it I'll upload my file.

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Oct 15, 2018 2:10 pm
by NealF
OK. I just updated and I got the same error message. But it worked.

I selected just the bone layer and added it to the Library. Got the error message. Went into the bone layer folder in the library and selected the PSD file and was able to add it to the new moho file.

If I selected the bone layer in the library I wouldn't get the add button. Only when I went into the bone later and selected the photoshop file would moho allow me to add it to the project.

So, at least it worked.

Re: LUA Console Error - MohoDoc:LayerByDepth-out of range

Posted: Mon Apr 17, 2023 4:10 pm
by gumpyanimator
This problem still exists in Moho Pro v13.5. I have been unable to add any characters to the library because of it. I am thinking that there may be some limit to the nesting depth of the layers in the character that prevents this function from working. Is this correct, or is there some other issue?