Move orphan frames to a new layer

Previous topic - Next topic

skhullar

Here is the ask -

Scan the current page - based on a condition like any frame which is ungrouped
1) Moved the frame to a new layer
2) Make visibility of all older layers OFF

Objective: Let the user know which frames he has forgotten to group. Any other ideas welcome

thanks

Sunil

a.l.e

#1
yes, that's possible; you can use:

  • scribus.getObjectType()
  • scribus.sendToLayer()
  • scribus.setLayerVisible()

please learn how to use the help in scribus (F1!) or the website with the API documentation, i  previously linked: all three commands above are the literal translation in code of your question and are easy to discover!
(yes, i also had to look them up in the API documentation!)