ID 593934 - Arranged node spacing is inconsistent between Interactive and Script mode

Follow

Problem summary
Arranged node spacing is inconsistent between Interactive and Script mode
 
Customer reported version
Katana 6.0v4
 
Customer reported platform
Rocky 9
 
Steps to reproduce
 
1) Create a .katana scene file with several unorganized nodes connected downstream.

2) Run the saved scene in Script mode with the following line: NodegraphAPI.ArrangeNodes(NodegraphAPI.GetAllNodes()) and ensure the file is saved.

3) Open the saved scene in Interactive mode, select all the arranged nodes, and press L to arrange again. Notice the nodes are much further spread even though the same width and length variables are being used. 
 
Expected behaviour
Arranging selected nodes should act the same between Interactive and Script Mode. 
 
Actual behaviour
Arranging nodes in Script Mode do not space them the same as interactive mode.
 
Workaround
You can manually set the width and length variables before the arrangement in Script mode to a larger value.
 
Reproduced by support
This bug has been reproduced in:
Katana 7.0v5 - Windows 11
Katana 6.5v5 - Windows 11
Katana 6.0v4 - Windows 11
Katana 6.0v1 - Windows 11
 
Earliest version tested
Katana 6.0v1 - This feature did not exist before this version
 

    We're sorry to hear that

    Please tell us why