Moho Pro 12 - Masking Bug
Moderators: Víctor Paredes, Belgarath, slowtiger
Moho Pro 12 - Masking Bug
Hey guys!
So here is a video and file of a project I have been working on that crashes every time I click on certain layers inside of my group/ mask folder.
https://drive.google.com/file/d/0B8vCze ... sp=sharing
Hope this helps
Computer Settings:
Windows 10 Home
Processor: Intel(R) Core(TM) i7-4790
CPU: 3.60GHz
System: 64-Bit Operating System
So here is a video and file of a project I have been working on that crashes every time I click on certain layers inside of my group/ mask folder.
https://drive.google.com/file/d/0B8vCze ... sp=sharing
Hope this helps
Computer Settings:
Windows 10 Home
Processor: Intel(R) Core(TM) i7-4790
CPU: 3.60GHz
System: 64-Bit Operating System
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck
- synthsin75
- Posts: 10047
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Moho Pro 12 - Masking Bug
Thank you for posting this. I've seen this happen for two other users and I've been trying to collect more data points before reporting it. The problem seems to be somewhere in the transform layer tool. I can successfully select your mountain layers if I select the BG layer, select the select points tool, and then select the mountain layer. Seems there can be an issue with selecting layers when the transform layer tool is active, but switching tools first bypasses this.
This has nothing to do with masking, btw.
This has nothing to do with masking, btw.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Moho Pro 12 - Masking Bug
Oh sweet! Good to know! Thanks Synthsin75
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck
- Lost Marble
- Site Admin
- Posts: 2354
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
Re: Moho Pro 12 - Masking Bug
Thanks for posting the file. I found and fixed the problem for the next update.
It turns out it's not really about masking. Something funny happened to this file: there's a keyframe at something like frame -900000. We've seen this before and I'm not sure what causes it. This in itself is not exactly a problem. The problem is when the Transform Layer tool tries to draw the path of that layer it's drawing a path that is over 900000 frames long. This makes things really slow, so slow that the program appears to have crashed.
The fix is to ignore drawing the path before frame 0. If you don't mind editing Lua files, you can fix it yourself without waiting for the update. Open the file lm_transform_layer.lua and look for these lines:
and add the three new lines shown below (starting with if (startFrame < 0) then):
If you don't want to mess with Lua scripts, then wait for the update that will fix it. Or, if you turn off the "Show path" option for the Transform Layer tool, you'll also avoid the problem.
It turns out it's not really about masking. Something funny happened to this file: there's a keyframe at something like frame -900000. We've seen this before and I'm not sure what causes it. This in itself is not exactly a problem. The problem is when the Transform Layer tool tries to draw the path of that layer it's drawing a path that is over 900000 frames long. This makes things really slow, so slow that the program appears to have crashed.
The fix is to ignore drawing the path before frame 0. If you don't mind editing Lua files, you can fix it yourself without waiting for the update. Open the file lm_transform_layer.lua and look for these lines:
Code: Select all
if (interp:IsAdditiveCycle()) then
endFrame = moho.document:EndFrame() + totalTimingOffset
end
if (endFrame > startFrame) then
local g = view:Graphics()
local m = LM.Matrix:new_local()
Code: Select all
if (interp:IsAdditiveCycle()) then
endFrame = moho.document:EndFrame() + totalTimingOffset
end
if (startFrame < 0) then
startFrame = 0
end
if (endFrame > startFrame) then
local g = view:Graphics()
local m = LM.Matrix:new_local()
- synthsin75
- Posts: 10047
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Moho Pro 12 - Masking Bug
You beat me to reporting it, Mike. This should also fix the other two I've seen. The first one was solved by deleting the later translation keyframes, but that wasn't a good solution. Nice tip about the "show path" checkbox.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Moho Pro 12 - Masking Bug
Oh sweet! Thanks so much Mike and Synthsin again that helps a ton! Will go through the Lua script and add in the code to fix it. Thanks again!
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck
Re: Moho Pro 12 - Masking Bug
So it seems I have something wonky with my permissions when trying to save. I am on a PC and using my administrator account but for some reason am getting this error
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck
Re: Moho Pro 12 - Masking Bug
Seems to be a Windows 10 thing. I did a right click > properties > security and have read/ write/ but no special permissions. Couldn't figure out how to gain special permissions from my admin account
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck
- synthsin75
- Posts: 10047
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Moho Pro 12 - Masking Bug
It's better to copy the tool to the custom content folder and make the changes there. That way you don't need to mess with permissions. Any duplicate tool in your custom folder overrides any stock tool.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Moho Pro 12 - Masking Bug
OOOOH good to know! thanks so much for your help once again!synthsin75 wrote:It's better to copy the tool to the custom content folder and make the changes there. That way you don't need to mess with permissions. Any duplicate tool in your custom folder overrides any stock tool.
I teach moho and animation on youtube - https://www.youtube.com/@mccoy_buck