The Perfect Layout plug-in includes two complex algorithms for creating a non-colliding and visually balanced look of the staff systems.
The algorithms are only applied to the score (linked parts will be supported in v3.x). But if the score actually is an extracted part (i.e. a single staff or an extacted part), then it will also work.

Image 1: The score balancing algorithm on an overstuffed page

The main algorithm works on overstuffed pages as well as on pages with lots of free space. The plug-in starts by creating the maximum condensed score and then inserts space for a good visual balance.
If there is way too much space, it won't stretch the page until the bottom page margin, but keep a portion free at the bottom of the page.
In general you should always get good results with the default score balancing settings of the plug-in. Should you not be happy with the result or would like to have access to more spacing parameters which are currently hidden to the user, please contact our support team: we might fine-tune our default settings for the future.

The second algorithm (Option: "Systems->Optimize System Distances Only and Keep Staff Distances") tries to preserve the original staff layout, by only adjusting those staff distances where the staves are actually colliding vertically.
Video: Automatic System Optimization by Only Adjusting the Colliding Staves and Preserving Most of the Layout

The current options for vertical spacing are:
a.) Max. Distance between Staves (Default: 470 EVPU)
Usually you will not get this distance between two staves as probably your page will not have that much space. But in case that there is so much space it will be limited to 470 EVPUs, unless only "a bit more" is required to fill the full page.

b.) Standard Distance Between Two-Staff Groups (Default: 280 EVPU)
If there is for example a piano part on the staff system, it should not have a distance of 470 EVPU as the other single staves. Instead they should be aligned a bit tighter. 280 EVPU has proved to be a good value for typical piano or harp staves.

c.) Adjust Top System Margin to Max. Position of Top Staff
When activated this feature aligns the top element of the top staff with the page top margin (see in image 2 bottom).
This option is available separately for the score and the parts.
By default this is activated for the parts only. In the score it is usually preferred to have the top staff lines aligned.

If you have deactivated this option, make sure you have a nice "Distance Between Systems" value in your Finale (default) page format settings. This will be used/maintained otherwise.

Note: Make sure there is enough vertical space between your page text elements and the page top margin (e.g. page numbers, title) before you apply Perfect Layout. Otherwise you may get collisions when this feature is activated.

When Perfect Layout detects these page text/page top margin collisions, it automatically deactivates this pre-set feature.
In this case you have to manually (re-)activate this option to have it applied.

Image 2: The "Adjust Top System Margin to Max. Position of Top Staff" option
The enclosure of "Letter D" is aligned with the page top margin.

d.) Multiple systems on a page are automatically spaced too. The extra space that is added between staves and/or systems can be controlled via the "Staff/System Distance" slider. The more you move the slider to the right the more space is inserted between staff systems.

e.)The extra space for groups within a system is controlled via the "Extra Distance Before/After Staff Groups" slider.
The more you move the slider to the right the more extra space is inserted before and after groups.
By default these sliders are set to auto-detection: an algorithm automatically sets good default spacing values for standard score types like single staff, piano, piano + solo, duo, piano + duo, small ensemble or large ensemble.

f.) Reserve Distance Between Bottom and Next Top Staff System Margin (Default: 70 EVPU)
After the score balancing algorithm the bottom system margin will be reduced by this value to allow easy manual shifting of the systems after Perfect Layout has finished.

Image 3: "Reserve Distance Between Bottom and Next Top Staff System Margin"

g.) Min. Vertical Space on Reflow Systems Across Pages (Default: 14 EVPU)
If "Reflow Systems Across Pages" is activated in the Finale preferences, Perfect Layout will re-arrange the systems across the pages and improve the layout. This "Min. Vertical Space" value defines the minimum distance between two systems. Usually you will never encounter this exact distance between systems in the end, as there is nearly always more space available on a page.
This is more a guide value that defines the general density of a page: the higher the value, the less number of systems will appear on a page.
E.g. the value 0 EVPU creates very dense parts, while a value of 50-70 EVPU generates a very loose vertical spacing.
This value is more relevant to (extracted) parts with lots of systems per page (see for example this demo video).
On conductor's scores with only one or two systems per page, this is not relevant as there is usually no reflow of systems across pages.

h.) Force Spread to Page Bottom Margin
While the Max. Distance Between Staves value (470 EVPU by default) usually defines the maximum distance between staves, this value can be overridden by activating Force Spread to Page Bottom Margin. This gives so much space between staves until the system(s) are stretched until the page bottom margin(see image 4).

Image 4:
Left: By default 470 EVPUs maximum distance between staves
Right: Force Spread to Page Bottom Margin activated

Note: The whole staff/system spacing algorithm is a very complex system which takes into account many parameters for a good visual balance, so we found these sliders to be a good and easy-to-use compromise.

Alignment at the page bottom:
You can select different alignment techniques for the bottom of the page (see image 5 below). In this case alignment means "snap an element to the bottom page margin". That is also why it is important to set the bottom page margin to your needs before running the Perfect Layout plug-in.

The option "Fix Staff System Bottom Margin (Auto-Detect Lowest)" looks at all score pages, finds the lowest element at the bottom staff and uses the distance of this element to the bottom staff line as the "fix bottom margin". This guarantees that all staff lines of the bottom staff system align over all pages and that no element goes below the bottom page margin line. This default option works best in most cases.

If the bottom staff has very different distances to the bottom staff line (e.g. in modern piano works), it may work better to select the "Lowest Element On Bottom Staff" algorithm which aligns the lowest elements on all pages (and not the bottom staff line).

Both options are combined in the default option "Auto-Detect (Fix Staff System Bottom Margin or Lowest Element)": if the bottom margin is huge and very different on each page (e.g. contemporary piano scores), the "Lowest Element" algorithm is select, otherwise the "Fix Staff System Bottom Margin (Auto-Detect Lowest)".

Other options are:
"Fix Staff System Bottom Margin": same as above, but the distance is not auto-detected and can be entered manually.
"Bottom Staff Line": this option aligns the bottom staff line with the bottom page margin which means that all elements below the bottom staff line appear below the bottom page margin. It's the same as a "Fix Staff System Bottom Margin" with a value of 0 EVPU.

Image 5: Option Align Page Bottom Margin With

Note: the score balancing algorithm needs to take into account each Finale object (except page texts). Unfortunately JW Lua doesn't support all object properties yet, so the algorithm has some minor restrictions.
Currently unsupported or only partially supported objects are for graphic objects, mid-measure clefs, staff names, complex cross staff notes, shape articulations and smartshapes that span more then two systems.
To support some of these objects nevertheless dummy values are used which already lead to better results.

Option: Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page (e.g. Copyright Text)
Perfect Layout aligns the bottom system with the page bottom margin. So you need to make sure that all copyright text, page numbers, etc. are placed below the page bottom margin in order to avoid collisions with the score.
Perfect Layout's Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page automatically adjusts the page bottom margin on the first page with systems (i.e. where usually the copyright texts are).

By default it generates a distance of 56 EVPU between the page bottom margin and the page text (see image 6 below).
The distance is set with the Bottom Margin to Page Text Distance parameter.

Image 6: Option Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page
The coda system is automatically shifted down for better readability (Option: "Shift Coda System Down"). The algorithm looks for repeat elements or text expressions with the user-defined keyword ("Coda" by default).
If the algorithm detects this word at the beginning of a system, it will move the system down by the given value (120 EVPUs by default). If there is not enough space on the page, the score balancing algorithm will probably decrease the distance.