Scribus Forums

Scribus => Scripts and Plugins => Topic started by: GBW on January 20, 2025, 01:03:58 PM

Title: [SOLVED] Scripter: is LayerLocked
Post by: GBW on January 20, 2025, 01:03:58 PM
Having just started to write some simple scripts to control the layer condition prior to exporting to pdf, I have come across what seems like an anomoly. (Maybe I have misunderstood). Essentially the results when calling isLayerLocked(layer) with a script in the console, the values seem incorrect as shown in the attached illustration (layers 2,3 4 for example are not locked but rated 1 = locked:
Can anyone explain?
Title: Re: Scripter: is LayerLocked
Post by: a.l.e on January 20, 2025, 06:58:36 PM
yep, isLayerLocked() is inverted...

it returns the value of Layers[...]->isEditable.

would you mind opening a ticket for it in the bug tracker, https://bugs.scribus.net ?
Title: Re: Scripter: is LayerLocked
Post by: MrB on January 21, 2025, 10:58:45 PM
Fixed in https://bugs.scribus.net/view.php?id=17383
Title: Re: Scripter: is LayerLocked
Post by: a.l.e on January 23, 2025, 09:19:54 AM
thanks!
Title: Re: Scripter: is LayerLocked
Post by: GBW on January 29, 2025, 04:12:37 PM
Hi, well thank you very much, I rearely find a genuine bug and hope this helps others.!
Title: Re: Scripter: is LayerLocked
Post by: jirib on February 24, 2025, 06:25:52 PM
mark as solved (at least solution is known) ???