(I’m hoping that there isn’t an obvious solution to my issue that I’ve overlooked)
I’m hoping to find a way to quickly (either through a script/hotkey) to add nodes that overlap, so that I can get masters to be compatible – without going through the fairly laboursome task of slicing the path at the node, deleting handles and then moving the nodes back to overlap.
To show what I mean, here are the 2 shapes I’m wanting to interpolate between (they are 2 different masters):
Select the nodes you want to duplicate, and run this script in Macro panel:
for i in range(len(Layer.paths)-1,-1,-1):
p = Layer.paths[i]
for j in range(len(p.nodes)-1,-1,-1):
n = p.nodes[j]
if n.selected and n.type!=GSOFFCURVE:
p.insertNode_atIndex_(GSNode(n.position),j+1)
for n in Layer.selection:
if isinstance(n, GSNode) and n.type != OFFCURVE:
newNode = n.copy()
newNode.type = LINE
n.parent.nodes.insert(n.index + 1, newNode)
You can simply scale them back into the vanishing point, best with the grey info box: turn the lock on, set the appropriate transform origin, and set width or height to zero.
There is a Duplicate Nodes filter available in the plug-in manager, which may be useful for you.