Scribusoid
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
February 08, 2023, 10:28:34 pm
News:
Problems registering, no confirmation email - see
http://wiki.scribus.net/canvas/Forums_Registration
Home
Help
Search
Login
Register
Scribus Forums
»
Scribus
»
Scripts and Plugins
»
is there a way to change the order of layers using scripter?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: is there a way to change the order of layers using scripter? (Read 585 times)
fredzannarbor
Newbie
Posts: 9
Karma: 0
Scribus User
is there a way to change the order of layers using scripter?
«
on:
February 01, 2022, 04:18:37 am »
How can I reorder the layers in a document? For example, if I have layers [A, B, C], but I want the order to be [B, C, A].
Logged
RodneyLee
Sr. Member
Posts: 309
Karma: 3
Scribus User
Re: is there a way to change the order of layers using scripter?
«
Reply #1 on:
February 01, 2022, 05:02:03 pm »
why a script and just not move them?
Logged
fredzannarbor
Newbie
Posts: 9
Karma: 0
Scribus User
Re: is there a way to change the order of layers using scripter?
«
Reply #2 on:
February 05, 2022, 04:18:37 am »
I have multiple docs to process with multiple layers and do not want to do everything by hand.
Logged
RobSay
Newbie
Posts: 40
Karma: 0
Scribus User
Re: is there a way to change the order of layers using scripter?
«
Reply #3 on:
February 05, 2022, 04:14:30 pm »
Yes you can do this - take a look at these functions:
lowerActiveLayer()
raiseActiveLayer()
Obviously you need to know or set which layer you start the script on.
You can try it in Scripter console:
Open the multi-layer document
Open the layers dialog (and leave it open) note the current layer
Open scripter console and run either method - you can see the layers moving in the dialog.
«
Last Edit: February 05, 2022, 04:21:59 pm by RobSay
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Scribus Forums
»
Scribus
»
Scripts and Plugins
»
is there a way to change the order of layers using scripter?
palmate