How to I lock a layer?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
mmmaarten
Posts: 276
Joined: Mon Sep 19, 2022 2:19 pm
Location: Utrecht, The Netherlands
Contact:

Re: How to I lock a layer?

Post by mmmaarten »

Script works great! Thanks for this @synthsin75!
Adults should play more often
User avatar
jeremiahbabers
Posts: 57
Joined: Thu Feb 17, 2022 1:29 am

Re: How to I lock a layer?

Post by jeremiahbabers »

i found an issue with refrences. i was able to lock the refrence but was unable to unlock it after frame 0. it just locks/unlocks the previously selected layer
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How to I lock a layer?

Post by synthsin75 »

https://dl.dropboxusercontent.com/scl/f ... sab2k&dl=0

Apparently Moho 14 doesn't like how I was keeping from selecting a locked layer off frame zero. I've removed that from this version.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: How to I lock a layer?

Post by Greenlaw »

Thanks for the update, Wes!
User avatar
EricTheFish
Posts: 91
Joined: Thu Jun 15, 2017 4:37 pm
Location: Lymm, UK

Re: How to I lock a layer?

Post by EricTheFish »

Hi Wes, I have a weird padlock icon display issue with the Lock Layer script.

Previously I was using script v0.2 which works as expected with Moho v13.5.
I'm now using Moho V14.2 on Win10x64 and have a strange display issue with both v0.2 and v0.3 of the script.

When I lock a layer, the locking action locks/unlocks the layer as expected but the padlock icon briefly flashes in the layer name then just displays a hollow box (like a missing character) symbol.
Oddly, if I select the layer name in either the Layers panel or the Layer Settings panel, the padlock icon becomes visible as long as the name is selected, but vanishes again when deselected.

Am I missing a font or something?
EricTheFish
Artist, musician, animator, coder and dabbler in stuff
www.tech-nique.co.uk
User avatar
synthsin75
Posts: 10253
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: How to I lock a layer?

Post by synthsin75 »

EricTheFish wrote: Tue Aug 06, 2024 6:31 pm Hi Wes, I have a weird padlock icon display issue with the Lock Layer script.

Previously I was using script v0.2 which works as expected with Moho v13.5.
I'm now using Moho V14.2 on Win10x64 and have a strange display issue with both v0.2 and v0.3 of the script.

When I lock a layer, the locking action locks/unlocks the layer as expected but the padlock icon briefly flashes in the layer name then just displays a hollow box (like a missing character) symbol.
Oddly, if I select the layer name in either the Layers panel or the Layer Settings panel, the padlock icon becomes visible as long as the name is selected, but vanishes again when deselected.

Am I missing a font or something?
Due to Moho 14.2 changing how it handles fonts, in order to expand its supported languages, symbols like the lock icon no longer work.
There is no way to "fix" this. I may at some point revert to adding "(LOCKED)" or "(X)" to the layer name, like I think I originally did.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: How to I lock a layer?

Post by SimplSam »

EricTheFish wrote: Tue Aug 06, 2024 6:31 pm ..
When I lock a layer, the locking action locks/unlocks the layer as expected but the padlock icon briefly flashes in the layer name then just displays a hollow box (like a missing character) symbol.
.. Am I missing a font or something?
As Wes indicated, this is due to current changes in Font handling within Moho 14.2. There may however be a tiny bit of light at the end of this tunnel - if you follow the steps here: viewtopic.php?p=219450#p219450. It involves swapping out the Font that Moho uses in 14.2, with an alternative that has better Unicode support. Note: Not advised if you/other need Korean language support.
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Post Reply