Switch layer crash

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
AnimationDog
Posts: 10
Joined: Thu Aug 25, 2022 8:11 pm

Switch layer crash

Post by AnimationDog »

I have been having an issue when I try to convert a sequence to a switch layer. "Convert to switch" crashes Moho 13.5. Is this a known issue? Is there a work around?
Thanks much!
User avatar
synthsin75
Posts: 10266
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Switch layer crash

Post by synthsin75 »

This issue has been reported to the devs.
AnimationDog
Posts: 10
Joined: Thu Aug 25, 2022 8:11 pm

Re: Switch layer crash

Post by AnimationDog »

Ok Thanks!
User avatar
Greenlaw
Posts: 10404
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Switch layer crash

Post by Greenlaw »

The workaround is a little complicated but it works...

1. Import the image sequence as single images rather than an image sequence. There are two ways to do this:
1a. Select all the image files in the folder and drag them into the Workspace. The images will appear in the Layers windows stacked in reverse order. Or...
1b. Select the 'Import Image...' command and then select the entire image sequence. The images will appear in the Layers windows stacked in reverse order.
2. Select all the images in the Layers window, right-click over the selection and choose Group With Selection.
3. Right-click over the group and choose Convert To Switch.

As mentioned above, the layers will be in reverse order (counting up from bottom to top) but this is what you want because when you add a new layer to the stack, you want to add it at the top. (Trust me, it's just easier this way.)

Hope this helps.
Last edited by Greenlaw on Fri Dec 23, 2022 8:03 pm, edited 1 time in total.
User avatar
Greenlaw
Posts: 10404
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Switch layer crash

Post by Greenlaw »

Another, simpler way is to create your Switch layer first, select it, and then use 'Import Image…' and select all the images at once. This will import the sequence as individual images directly into your Switch layer.
Last edited by Greenlaw on Fri Dec 23, 2022 8:03 pm, edited 1 time in total.
User avatar
erikk
Posts: 62
Joined: Mon Aug 24, 2009 8:19 pm

Re: Switch layer crash

Post by erikk »

synthsin75 wrote: Thu Dec 22, 2022 10:04 pm This issue has been reported to the devs.
Long ago, as well. I reported this years ago because if you convert a group to a switch layer you get the same. So far as I could tell, it caused a null to be inserted into the scripting and BOOOOMMM! So, let’s hope it gets fixed at some point. The answer is indeed to create the Switch layer and then move everything in. Still, a bug that has hit me several times.
Post Reply