LUA Console Error - MohoDoc:LayerByDepth-out of range

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
NealF
Posts: 199
Joined: Thu Jun 24, 2010 8:54 pm
Contact:

LUA Console Error - MohoDoc:LayerByDepth-out of range

Post 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.
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

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

Post 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?
User avatar
NealF
Posts: 199
Joined: Thu Jun 24, 2010 8:54 pm
Contact:

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

Post by NealF »

Sure. Trying to find out how to upload. Am I not seeing something?
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

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

Post 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.
User avatar
hayasidist
Posts: 3492
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

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

Post 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
User avatar
NealF
Posts: 199
Joined: Thu Jun 24, 2010 8:54 pm
Contact:

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

Post 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.
User avatar
NealF
Posts: 199
Joined: Thu Jun 24, 2010 8:54 pm
Contact:

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

Post 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.
gumpyanimator
Posts: 1
Joined: Sun Apr 16, 2023 4:14 pm

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

Post 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?
Post Reply