[scribus] Use API to Clone Style
Matt Miller
matt.miller at fastmail.com
Fri Feb 4 18:31:01 UTC 2022
On Fri, Feb 4, 2022, at 11:19, Gregory Pittman wrote:
> On 2/4/22 12:40, Matt Miller wrote:
>> I was hoping to use the API to clone several paragraph and character styles and then change just a couple attributes. However I can't see any way to do that in the API. I don't even see an API for getting the attributes of a style. Am I missing something?
>>
>
> Hi Matt,
>
> Yes, you're right, you can't change attributes of an existing style.
> You can get a list of existing styles, and create styles.
>
> What you want to do is easier outside of Scripter. Just Edit > Styles,
> and then pick the style you wish to edit. Note that you can also import
> styles from another document - this might be a form of cloning. When
> you create a style, you can specify which style it is based on, which
> is in essence cloning too.
Yeah, I was able to manually clone and tweak 24 styles by the time I got back to checking for a reply to my question!
Thanks for confirming.
>
> Greg
>
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net
--
Matt Miller
mailto:matt.miller at fastmail.com
More information about the scribus
mailing list