Plugin for version 3.0 - adjust page layout?
Hello, we have a plugin for Musescore 1.x/2.x which adjusts the page layout:
var pageFormat = curScore.pageFormat
pageFormat.printableWidth = 5000 - margin / INCH
pageFormat.size.width = 5000
pageFormat.size.height = 2000
but pageFormat is no longer a key of curScore.
Is there a way to set the page format in a 3.x plugin? Thanks!
edit: I think I should add we're just doing this to get one continuous horizontal sheet with no page or line breaks. Maybe there's a better way to achieve this in Musescore 3.
Comments
Isn't that just continuous view, same as in MuseScore 2?
In reply to Isn't that just continuous… by Marc Sabatella
Thanks for your reply. We export SVGs from the command line (no GUI). I couldn’t figure out how to tell Musescore to do this in a horizontal “continuous view” any other way than changing the page layout. I’d be happy to hear any suggestions though!
I believe scores in continuous mode get switched to page mode temporarily for exporting to PDF, SVG, PNG
In reply to I believe scores in… by Jojo-Schmitz
Ok. It looks like continuous mode isn’t the answer here.
The export works fine if we change the page format, I just can’t figure out how to do it in a Musescore 3 plugin.
It’d be possible to just parse the Musescore file ourselves and edit the page format there (it’s just an XML file), that’s not a very future-proof solution though. If it’s not possible we’ll just stick with version 2 for now.