SOLVED Set background image “lock” by script?

  • I can find and alter the image settings in a glyph.lib:


    But I don't see a flag for locking the image. Where should I look?

  • Hi Gustavo, thank you! Ok, that explains it. I assumed the lock was for each glyph separately.

  • hello @erik,

    locking background images is a global setting named glyphViewLockImages.

    it can be modified in the Preferences Editor, or using a script:

    # toggle background images lock
    from mojo.UI import getDefault, setDefault
    value = not getDefault("glyphViewLockImages")
    setDefault("glyphViewLockImages", value)