The default geometries of Automatic Layout's hierarchical layouts look odd to me – cognitively a bit distracting or noisy (parent nodes are not properly centred over their child ranges).
I have sketched a script that lays hierarchies out in a way that looks cleaner and simpler to me, but when linked shapes are repositioned by Applescript, the connectors are not automatically updated – they are left in a tangled mess.
I have found two ways to trigger a connector update – neither ideal, so I wonder if others have found better solutions.
1. Slightly nudge each shape in the layer, e.g.
2. Group all the involved shapes.
This is easily done in Applescript, and instantly triggers a connector update ...
but I haven't found an Applescript technique for ungrouping ...
Any other ways of triggering a connector update without entailing a need to manually ungroup ?
I have sketched a script that lays hierarchies out in a way that looks cleaner and simpler to me, but when linked shapes are repositioned by Applescript, the connectors are not automatically updated – they are left in a tangled mess.
I have found two ways to trigger a connector update – neither ideal, so I wonder if others have found better solutions.
1. Slightly nudge each shape in the layer, e.g.
Code:
repeat with oShape in shapes of lyrTree set {lngX, lngY} to origin of oShape set lstDelta to {lngX + 10, lngY - 10} set origin of oShape to lstDelta set origin of oShape to {lngX, lngY} end repeat
This is easily done in Applescript, and instantly triggers a connector update ...
Code:
set oGroup to assemble shapes of lyrTree
Any other ways of triggering a connector update without entailing a need to manually ungroup ?