How to bring a barnum, staffnum onto the screen so the bar is visible

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to bring a barnum, staffnum onto the screen so the bar is visible

Bob Zawalich-3
I have always had trouble getting the desired bar to onscreen. This slightly
weird combination will do it.

If you can live with a system selection you just need the first 3 lines


Bob




To passage select a single bar in one staff and make it visible

Make a system selection
Move active view to bar

This brings that bar to the left of the screen (at least if it is the first
in a system)

Make a passage selection
Move active view to selection

So given score, staffnum, barnum:

if (staffnum > 0)
{
        selection = score.Selection;
        selection.SelectSystemPassage(barnum, barnum);
        Sibelius.MoveActiveViewToBar(barnum);

        selection.SelectPassage(barnum, barnum, staffnum, staffnum);
        Sibelius.MoveActiveViewToSelection();
}

_______________________________________________
Plugin-dev mailing list
[hidden email]
https://avid-listsrv1.avid.com/mailman/listinfo/plugin-dev