select_nodes = ()
for path in Layer.paths:
for node in path.nodes:
if node.selected == True:
print(node.x)
select_nodes = select_nodes + (node,)
print(select_nodes)
Layer.reconectNodesAtNode1_node2_offset_(select_nodes[0], select_nodes[1], 10.0)
print(select_nodes)
As shown in the above code, execute Layer.reconnectNodesAtNode1_ node2_ offset_ Select after (select_nodes [0], select_nodes [1], 10.0)_ Nodes will change, but I want to use the coordinates before the change. But I can’t get my first select_ Nodes coordinates. Or can you tell me how the rules changed
I have tested the clockwise and counterclockwise paths, as well as the different positions of the selected points, and cannot summarize the rules of change.
When the offset is 0, there will be no judgment of this situation, but there will be two more points on the original path, which cannot meet my requirements
print(select_nodes)
select_nodes are different before and after two prints, and I need to know that after executing Layer.reconnectNodesAtNode1_ node2_ offset_ After (select_nodes [0], select_nodes [1], 10.0), still obtain the first select_ nodes
I originally intended to save the select_nodes before and after to txt separately, and then read the first one again, which would be very troublesome. So I want to ask for advice.